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?
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).
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?
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).