···7979Then like above, `nix-env -f "<nixpkgs>" -iA rstudioEnv` will install
8080this into your user profile.
81818282+Alternatively, you can create a self-contained `shell.nix` without the need to
8383+modify any configuration files:
8484+8585+```nix
8686+{ pkgs ? import <nixpkgs> {}
8787+}:
8888+8989+pkgs.rstudioWrapper.override {
9090+ packages = with pkgs.rPackages; [ dplyr ggplot2 reshape2 ];
9191+}
9292+9393+```
9494+9595+Executing `nix-shell` will then drop you into an environment equivalent to the
9696+one above. If you need additional packages just add them to the list and
9797+re-enter the shell.
9898+8299## Updating the package set
8310084101```bash