Skip to content

rix 0.1.2

Choose a tag to compare

@philipp-baumann philipp-baumann released this 15 Aug 13:00

Bug fixes

  • Patch inst/exdata/default.nix by removing LOCALE_ARCHIVE shellHook, that was set to
    glibc locale. This makes sure nix-build does not fail on MacOS anymore (#40; fixed with 37f7ab8). Please note that this is a temporary fix that works, but it gives a startup warning in R for linux that the locale categories were set to "C".
  • nix_build(): fix defensive check so the error message is referring to project_path instead of nix_file. The patch does not change correct behavior of nix_build(), hence it is only of cosmetic nature.

Rix: Reproducible Environments with Nix

{rix} is a toolkit in R that eases the creation of reprodublible and isolated R environments (and beyond) using Nix and the Nix Packages collection.

The goal is to enable a frictionless infrastructure-as-code approach for all three major operating systems: linux, macOS and Windows (via WSL2). {nix} equips you with handy helpers so that you can derive a project-based Nix setup without diving too deep into the language and packaging specifics of Nix.

rix() is one of the main functions, which you can use to bootstrap default.nix files by providing these arguments:

  • r_ver: R version or corresponding Nix R revision
  • r_pkgs: R packages and versions from CRAN
  • other_pkgs: any other systems tools available from Nix (e.g. Julia, Rust,
    quarto CLI, etc.)
  • git_pkgs: R packages and versions from GitHub
  • ide: interactive development environment; currently we support RStudio,
    VSCode, and "other"

A lot of new cool features are underway in upcoming versions. Please check out the changelog above or NEWS.md for features, bug fixes and eventual changes in new features. The issue tracker is the recommended way to report problems and to follow development plans and progress.