Skip to content

rix 0.4.1

Latest

Choose a tag to compare

@philipp-baumann philipp-baumann released this 06 Oct 03:54

rix 0.4.1 (2023-10-06)

Bug fixes

  • rix::rix(): fix missing pkgs.mkShell when shell_hook = NULL.
    Both shell_hook = "" and shell_hook = NULL are now producing valid nix
    expressions.

Rix: Reproducible Environments with Nix

{rix} is a toolkit in R that eases the creation of reprodublible and isolated R environments 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
  • system_pkgs: any other systems tools available from Nix (e.g. Julia, Rust,
    quarto CLI, etc.)
  • git_pkgs: R packages and versions from GitHub
  • tex_pkgs: Set of LaTeX packages to install
  • ide: interactive development environment; currently we support RStudio,
    VSCode, and "other"
  • project_path
  • overwrite
    • print
  • shell_hook: Commands added via shellHook that get executed when entering in Nix shell environemnt

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.