Start an interactive session on development nodes. On -A option below use your slurm account. Here, I am using slurm account named univ1s16
[stimsina@arclogin01 ~]$ srun -p qDEV -A AAS3S2 --nodes=1 --ntasks-per-node=1 --time=01:00:00 --pty bash
Load the module R
[stimsina@arcdevelopment ~]$ module load r-studio/4.1.2
[stimsina@arcdevelopment ~]$ R
This will install the package in your home folder
> install.packages("fda")
Check if the given package can be loaded using the command below:
> library(fda)
Exit from the development node
[stimsina@arcdevelopment ~]$ exit
If you want to install a package in a different location. Let's say /userapp/your-gsu-campus-id/Rpackages, you need to export the following environment variable before installing the package.
export R_LIBS_USER=/userapp/your-gsu-campus-id/Rpackages:$R_LIBS_USER
Here we are installing packages “dplyr” and “stringr”
> install.packages(c("dplyr", "stringr")
You can load the multiple packages using
> library(fda, dplyr,stringr)