Discover and explore top open-source AI tools and projects—updated daily.
ropensciReproducible R, Python, and Julia environments with Nix
Top 80.4% on SourcePulse
rix provides reproducible R data science environments using Nix, a package manager for reproducible builds. It targets researchers and developers needing consistent project setups across platforms and time. By managing R versions, R packages, and system dependencies holistically, rix ensures full reproducibility, simplifying collaboration and deployment.
How It Works
This R package simplifies Nix environment creation by generating Nix expressions (default.nix) for isolated R setups. It allows specifying R versions, R packages, system libraries (e.g., GDAL), and even Python/Julia environments. Nix builds immutable, reproducible environments, offering superior reproducibility over tools like renv by capturing system dependencies and providing a declarative alternative to Docker. A fork of Nixpkgs enhances compatibility, especially for Apple Silicon.
Quick Start & Requirements
install.packages("rix") (CRAN) or install.packages("rix", repos = c("https://ropensci.r-universe.dev")) (R-universe).rix() in R to generate default.nix and .Rprofile. For Nix users: install Nix, configure Cachix (rix::setup_cachix()), and trust the Nix daemon.nix-shell -p R rPackages.rix or build with nix_build().Highlighted Details
renv.lock files.rix.pkgctx.yaml) for code generation.Maintenance & Community
Part of the rOpenSci ecosystem. Acknowledges Nix community contributions and the Nixpkgs R channel (#r:nixos.org on Matrix). Adheres to a Contributor Code of Conduct. Related package rixpress for polyglot pipelines.
Licensing & Compatibility
The license type is not explicitly stated in the provided README content. Commercial use compatibility is not detailed.
Limitations & Caveats
Nix has a steep learning curve. A small percentage (<5%) of CRAN/Bioconductor packages may not be supported. Python/Julia environment builds may occasionally fail, requiring user issue reporting.
2 days ago
Inactive
allenai
tensorchord
clearml