...
To install additional Libraries
Code Block |
---|
#Start an interactive job (so you have enough RAM/CPU to complete the install.) |
...
qsub -I -P <PROJECT> |
...
#Once it starts, load the version of R you want. |
...
module load R/4.1.1 |
...
#Launch an interactive R terminal |
...
R |
...
#Now install R packages, probably specifying a directory in /project to install to #(otherwise the default location in your /home/unkiey/.R will fill up quickly). |
...
install.packages('SoilR',lib='/project/<PROJECT>/myRLibs/') |
After it installs you should be good to go. Keep in mind whenever you want to load the library you must specify the location of your library in your R scripts.
...