Replying to @brodriguesco
No disrespect to nix, but this is a) a problem we had solved in Debian/Ubuntu a decade ago and b) made easy more recently via #r2u. I just ran docker run --rm -ti rocker/r2u:jammy \ Rscript -e 'install.packages("xlsx")' and of course it just worked. Try it. #rstats

Jul 17, 2023 · 3:44 AM UTC

1
1
10
Replying to @eddelbuettel
Hi Dirk, yes I know about r2u and always tell anyone I meet using Ubuntu to use it! However that’s an Ubuntu only solution. The advantage of #Nix is that it works on any operating system. I think that Nix could be quite useful to replace renv+Docker for reproducibility.
1
1
1
Also, Nix can be used to install older releases of R and packages, by using an older revision. This is not possible with other package managers. For example, this default.nix file here: github.com/b-rodrigues/nix_e… installs R version 4.2.2 because I’m using that specific Nix revision
2
2