Please keep in mind that it is not currently recommended to use the interactive x11 job with the
desktop version of Rstudio, as described, for example,
[here](../jobs_and_resources/slurm.md#interactive-jobs) or in introduction HPC-DA slides. This
method is unstable.
Please keep in mind that it is currently not recommended to use the interactive x11 job with the
desktop version of RStudio, as described, for example, in introduction HPC-DA slides.
## Install Packages in R
By default, user-installed packages are stored in the `/$HOME/R\` folder inside a
subfolder depending on the architecture (on Taurus: x86 or PowerPC). Install packages using the
shell:
By default, user-installed packages are saved in the users home in a subfolder depending on
the architecture (x86 or PowerPC). Therefore the packages should be installed using interactive
jobs on the compute node:
```Bash
srun -p haswell -N 1 -n 1 -c 4 --mem-per-cpu=2583 --time=01:00:00 --pty bash #job submission to the haswell nodes with allocating: 1 task per node, 1 node, 4 CPUs per task with 2583 mb per CPU(core) in 1 hour
module purge
module load modenv/scs5 #Changing the environment. Example output: The following have been reloaded with a version change: 1) modenv/ml => modenv/scs5