Ondemand at NAU is an easy to use graphical user interface to the Monsoon cluster. Rstudio is available as an App on Ondemand, but there are some limitations that you must be aware of. As Rstudion runs on a compute node and not a login node, installing R packages within Rstudio is not feasible. Development tools needed for installing the packages in Rstudio are not avaiable. This includes if you need to compile libraries on the fly such as when using the Rcpp function. So, you must install your R packages while logged into a login node. Currently R 4.0.2 is the default for Ondemand Rstudio.
From the Ondemand Desktop, pull down the Clusters menu and select >_Monsoon login-node shell.
Once you are logged into the login node do the following:
module load R/4.0.2
R
You will then be in R and you may use the install.packages function to install the packages you require. For example, if you want to install the package sf, do the following:
install.packages(“sf”)
Once you have installed your packages you may then quit R and log out of the login-node shell. The packages will now be available to use in Rstudio. The library function is used to access an installed package.
library(sf)