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.
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()
ga_cachix Build an environment on GitHub Actions and cache it on Cachix
tar_nix_ga()
tar_nix_ga Run a {targets} pipeline on GitHub Actions.

Project setup

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

renv2nix()
renv2nix
setup_cachix()
setup_cachix Setup up the rstats-on-nix binary repository
make_launcher()
Create a startup script to launch an editor inside of a Nix shell