Skip to contents

Core functions

The main functions for generating and initializing Nix environments.

rix()
Generate a Nix Expression That Builds a Reproducible Development Environment
rix_init()
Initiate and Maintain an Isolated, Project-Specific, and Runtime-Pure R setup via Nix.

Nix execution

Functions to build Nix expressions and run code inside Nix environments.

nix_build()
Invoke Shell Command nix-build from an R Session
with_nix()
Evaluate Function in R or Shell Command via nix-shell Environment

Available versions

Functions to query available R versions and dates for environment generation.

available_dates()
List Available Dates for R and Bioconductor Releases
available_df()
Return Data Frame with R, Bioc Versions and Supported Platforms
available_r()
List Available R Versions from the rstats-on-nix Fork of Nixpkgs

CI/CD integration

Functions for integrating rix with GitHub Actions and Cachix.

ga_cachix()
Build an Environment on GitHub Actions and Cache It on Cachix
tar_nix_ga()
Run a Targets Pipeline on GitHub Actions

Project setup

Functions for converting renv projects, setting up caches, and creating launchers.

renv2nix()
Convert an renv.lock File to a Nix Expression
setup_cachix()
Configure the rstats-on-nix Binary Cache
make_launcher()
Create a Startup Script to Launch an Editor Inside a Nix Shell