Reproducible Data Science Environments with 'Nix'
Overview
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.
New features
fetchgit(): added an automatedgit clonefallback when computing SRI hashes and dependencies for Git packages. If downloading the archive tarball fails or is blocked by anti-bot/login restrictions (e.g. on Forgejo/Gitea instances),{rix}falls back to a fast shallow git clone (git fetch --depth 1) to retrieve the source, calculate the NAR hash, and extract the commit date.
Bug fixes
nix_hash(): added gzip magic byte verification to detect HTML challenge/error pages early when downloading archives instead of attempting a brokenuntar().nix_sri_hash(): added safety checks against empty path vectors (character(0)) to prevent unhandledargument is of length zerocrashes.
Maintenance
Show all changes in 0.18.5Hide the rest of the changes in 0.18.5
- Updated test snapshots for
frozen-edge,darwin_rstudio, andavailable_r. - Updated commit SHAs and expected dates in fetcher test suites.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-07-13
- ERROR12 OK, 1 ERROR2026-07-10
- OK13 OK2026-05-11
Show 2 earlier changesHide 2 earlier changes
- WARNING12 OK, 1 WARNING2026-05-10
- OK14 OK2026-03-10
Documentation
- Help pages
- 12
- Examples that run
- 33%4 run in a plain check · 8 never run
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
- A Complete End-to-End Walkthrough to Set Up a Project HTML
- Building an environment for literate programming HTML
- Contributing to nixpkgs HTML
- Converting renv projects to Nix projects HTML
- Developing packages with rix HTML
- Getting started HTML
- Handling packages with remote dependencies HTML
- Installing R and Python packages in a Nix environment HTML
- Installing system tools and TexLive packages in a Nix environment HTML
- Packaging Your Code in R and Python with rix HTML
Show 9 moreHide 9 vignettes
- Reproducible Analytical Pipelines with Nix HTML
- Rolling out your own binary cache HTML
- Running R or Shell Code in Nix from R HTML
- Setting up and using Nix and rix on Linux and Windows HTML
- Setting up and using Nix and rix on macOS HTML
- Understanding the rPackages set release cycle and using bleeding edge packages HTML
- Using an IDE with Nix shells HTML
- Using Nix inside Docker HTML
- Using rix to build project specific environments HTML
Downloads
Repository
- PRs merged (all time)
- 92%
- Median days to close, 50 most recently updated closed issues
- 14
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Issues over time
PRs over time
Commits over time
Commit identities over time
15 development-tooling and community-health practices detected across 7 families in the upstream repository
Checks run against github.com/ropensci/rix on 2026-10-21.
The R CMD check workflow runs on Linux
GitHub Pages site last deployed 2024-09-16 · The repository has a site deploy workflow
pkgdown site last built 2024-09-16, before release 0.18.5 (2026-08-26)
Show all practicesHide 3 practices
An outside contributor's pull request to this repository was written with an AI coding tool.
- CodexPull requests: 1 from outside contributors, first on 2025-11-09
Dependencies
Installing rix adds 3 packages (3 with compiled code, 1.7 MB of source tarballs). Heaviest: jsonlite 1.0 MB, curl 714 KB, sys 19 KB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 0.18.5Latest
- RR 4.6.0 released · 2026-04-24
- 0.18.22026-02-18 · diff ↗
- 0.18.12026-01-28 · diff ↗
- 0.17.42026-01-16 · diff ↗
- 0.17.22025-09-11 · diff ↗
- 0.16.02025-04-24 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 0.15.72025-03-17 · diff ↗
- 0.15.52025-03-01 · diff ↗
- 0.15.2
- 0.14.42025-01-21 · diff ↗
- 0.14.3
- 0.12.42024-10-02 · diff ↗
- 0.12.32024-09-26 · diff ↗
- 0.12.12024-09-25
Show 1 earlier eventHide 1 earlier event
- RR 4.4.0 released · 2024-04-24
Package metadata
- First published
- 2024-09-25
- Total releases
- 14 / 2 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 2.10
- Download size
- 2.0 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("rix")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.