Running R in NixOS
In Nix and Guix, you can't install R packages with an R command like install_github()
or install_git()
, because they attempt to write to /nix/store/...-r-remotes-2.0.2/library
. Nothing is allowed to write to /nix/store
.
To make it work, add a lib= parameter pointing to a folder of your own:
remotes::install_git("https://github.com/rmcelreath/rethinking.git", lib="~/R/library")
What links here
- Nix
- Never kill a buffer
Created (6 years ago)