rix: Reproducible Data Science Environments with 'Nix'

Simplifies the creation of reproducible data science environments using the 'Nix' package manager, as described in Dolstra (2006) <ISBN 90-393-4130-3>. The included ‘rix()' function generates a complete description of the environment as a 'default.nix' file, which can then be built using ’Nix'. This results in project specific software environments with pinned versions of R, packages, linked system dependencies, and other tools or programming languages such as Python or Julia. Additional helpers make it easy to run R code in 'Nix' software environments for testing and production.

Version: 0.17.4
Depends: R (≥ 2.10)
Imports: codetools, curl, jsonlite, sys, utils
Suggests: knitr, rmarkdown, testthat
Published: 2026-01-16
DOI: 10.32614/CRAN.package.rix
Author: Bruno Rodrigues ORCID iD [aut, cre], Philipp Baumann ORCID iD [aut], David Watkins [rev] (David reviewed the package (v. 0.9.1) for rOpenSci, see <https://github.com/ropensci/software-review/issues/625>), Jacob Wujiciak-Jens ORCID iD [rev] (Jacob reviewed the package (v. 0.9.1) for rOpenSci, see <https://github.com/ropensci/software-review/issues/625>), Richard J. Acton ORCID iD [ctb], Jordi Rosell ORCID iD [ctb], Elio Campitelli ORCID iD [ctb], László Kupcsik ORCID iD [ctb], Michael Heming ORCID iD [ctb]
Maintainer: Bruno Rodrigues <bruno at brodrigues.co>
BugReports: https://github.com/ropensci/rix/issues
License: GPL (≥ 3)
URL: https://docs.ropensci.org/rix/
NeedsCompilation: no
Materials: README, NEWS
In views: ReproducibleResearch
CRAN checks: rix results

Documentation:

Reference manual: rix.html , rix.pdf
Vignettes: Rolling out your own binary cache (source, R code)
Understanding the rPackages set release cycle and using bleeding edge packages (source, R code)
Using an IDE with Nix shells (source, R code)
Contributing to nixpkgs (source, R code)
Developing packages with rix (source, R code)
Getting started (source, R code)
Installing R and Python packages in a Nix environment (source, R code)
Installing system tools and TexLive packages in a Nix environment (source, R code)
Building an environment for literate programming (source, R code)
Using Nix inside Docker (source, R code)
Packaging Your Code in R and Python with rix (source, R code)
Using rix to build project specific environments (source, R code)
Handling packages with remote dependencies (source, R code)
Converting renv projects to Nix projects (source, R code)
Reproducible Analytical Pipelines with Nix (source, R code)
Running R or Shell Code in Nix from R (source, R code)
Setting up and using Nix and rix on Linux and Windows (source, R code)
Setting up and using Nix and rix on macOS (source, R code)
A complete end-to-end walkthrough to set up a project (source, R code)

Downloads:

Package source: rix_0.17.4.tar.gz
Windows binaries: r-devel: rix_0.17.2.zip, r-release: rix_0.17.4.zip, r-oldrel: rix_0.17.2.zip
macOS binaries: r-release (arm64): rix_0.17.4.tgz, r-oldrel (arm64): rix_0.17.4.tgz, r-release (x86_64): rix_0.17.4.tgz, r-oldrel (x86_64): rix_0.17.4.tgz
Old sources: rix archive

Reverse dependencies:

Reverse suggests: rixpress

Linking:

Please use the canonical form https://CRAN.R-project.org/package=rix to link to this page.