Nix for R users with {rix} - running an old project with an old R and old packages

Поділитися
Вставка
  • Опубліковано 25 січ 2025

КОМЕНТАРІ •

  • @j_5chneider74
    @j_5chneider74 Рік тому +2

    That sounds pretty awesome! Did I catch you right, that if I want to make my project reproducible, all I have to do is to create a default.nix file (e.g., by using your rix package) and share this together with my project? Others can then use nix to reproduce the environment + package versions based on the default.nix file across all plattforms?

    • @brodriguesco
      @brodriguesco  Рік тому +2

      Exactly! Try it with this repository github.com/b-rodrigues/chronicler_targets_pipeline
      clone it, run 'nix-build' inside a terminal; this will install a separate environment with R, R packages and everything else needed. Then type 'nix-shell' (of course Nix needs to be installed) in a terminal in the same directory. You'll be inside an R session as defined by that default.nix. You can then type 'targets::tar_make()' to actually run the pipeline and see the output appear in your directory (analysis.html).