lol

Merge pull request #31192 from mulderr/master

nixpkgs manual: add rstudio shell.nix example

authored by

Peter Simons and committed by
GitHub
37d5539a dd851a8d

+17
+17
pkgs/development/r-modules/README.md
··· 79 79 Then like above, `nix-env -f "<nixpkgs>" -iA rstudioEnv` will install 80 80 this into your user profile. 81 81 82 + Alternatively, you can create a self-contained `shell.nix` without the need to 83 + modify any configuration files: 84 + 85 + ```nix 86 + { pkgs ? import <nixpkgs> {} 87 + }: 88 + 89 + pkgs.rstudioWrapper.override { 90 + packages = with pkgs.rPackages; [ dplyr ggplot2 reshape2 ]; 91 + } 92 + 93 + ``` 94 + 95 + Executing `nix-shell` will then drop you into an environment equivalent to the 96 + one above. If you need additional packages just add them to the list and 97 + re-enter the shell. 98 + 82 99 ## Updating the package set 83 100 84 101 ```bash