Skip to content

Reproducible Data Science Environments with 'Nix'

0packages dependsuggested by 1
6.1Kdownloads / year
32.7%test coverage
13/13flavors OK

Overview

About

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.

Changes in 0.18.5

New features

  • fetchgit(): added an automated git clone fallback 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 broken untar().
  • nix_sri_hash(): added safety checks against empty path vectors (character(0)) to prevent unhandled argument is of length zero crashes.

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, and available_r.
  • Updated commit SHAs and expected dates in fetcher test suites.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.1 min · r-oldrel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

Downloads

6.1K
CRAN downloads in the past year
Rank #7,063 · ~17/day · ~509/mo
Daily download trend is not available in this view yet.
37230 days
1.2K90 days
6.1K1 year
Compare downloads with other packages →
Also on169 r2u5 autocran

Repository

384Stars
26Forks
16Open issues
2Open PRs
4Releases
2,674Commits
22Commit identities
nixpeer-reviewedreproducibilityreproducible-research
License file reads as GPL-3.0 · 2,674 commits · Last activity 2026-10-14 · +0.8% stars, 30d · Default branch at 0.18.6, ahead of CRAN 0.18.5 (checked 2026-10-21) · Discussions: 12 posts
Responsiveness
How these are sampled
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

2026-07-14 · 3722026-10-09 · 384
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux

Governance and community (2)
Code of conduct (inherited from ropensci)Contributing guide
Docs source (4)
README.Rmdpkgdown

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)

Reproducibility and dev environment (2)
data-raw/Nix
Show all practicesHide 3 practices
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Research and citation (1)
codemeta.json
Lint, format, editor (2)
lintrLint workflow
How this is detected·Detection ruleset v4 (2026-10-20)
AI coding toolsBeta

An outside contributor's pull request to this repository was written with an AI coding tool.

From outside contributors
  • Codex
    Pull requests: 1 from outside contributors, first on 2025-11-09
How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
6 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 2.10
Imports (5)
codetoolscurljsonlitesysutils
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 1
Suggests, most downloaded first

Datasets

People & History

People (9)
Author, Maintainer since 0.12.1 (2024)
Contributor · added in 0.14.3
Contributor · added in 0.14.3
Contributor · added in 0.14.3
Contributor · added in 0.14.3
Contributor · added in 0.14.3
Reviewer
David reviewed the package (v. 0.9.1) for rOpenSci, see <https://github.com/ropensci/software-review/issues/625>
Reviewer
Jacob reviewed the package (v. 0.9.1) for rOpenSci, see <https://github.com/ropensci/software-review/issues/625>
Releases (14)

Pick two releases to compare their code metrics.

Show 1 earlier eventHide 1 earlier event
  • R
    R 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
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("rix")
Rodrigues, B., Acton, R. J., Baumann, P., Campitelli, E., Heming, M., Kupcsik, L., Rosell, J., Watkins, D., & Wujiciak-Jens, J. (2026). rix: Reproducible Data Science Environments with 'Nix' (Version 0.18.5) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for rix version 0.18.5 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy