Nix shell environment to debug a build of an R package

you can also do nix-shell default.nix -A rPackages.rJava
which will drop you into the shell used to conduct the build. You can then do unpackSource and the other phases locally. Really useful when doing a new package and might hit many hiccups.

I have an example using this in https://www.youtube.com/watch?v=sO57VV4Ho5s

2 Likes