How to use in the parent directory: nix-shell default.nix rstudio make.R then open the make file in Rstudio and run the install snippet.