...
Code Block | ||
---|---|---|
| ||
# Unload modules $ module unload R intel-compiler # Load modules, always specify version number. $ module load R/4.1.0 $ module load intel-compiler/2021.2.0 $ R .... >install> install.packages("randomForest",repos="https://mirror.aarnet.edu.au/pub/CRAN/") Warning in install.packages("randomForest") : ''''''''''''''''''''''''''''''''lib = "/apps/R/4.1.0/lib64/R/library"'''''''''''''''''''''''''''''''' is not writeable Would you like to create a personal library ''''''''''''''''''''''''''''''''~/R/x86_64-unknown-linux-gnu-library/4.1.0'''''''''''''''''''''''''''''''' to install packages into? (y/n) y |
If you wish to install packages in a different directory from the default ~/R/x86_64-unknown-linux-gnu-library/4.1.0
, you need to set the environment variable R_LIBS
to the new directory. For bash
, you will be able to set it using
Code Block | ||
---|---|---|
| ||
$ export R_LIBS=/path/to/your/new/directory:$R_LIBS |
command. This will also need to be set every time you use R.
...