This version (2024/10/24 10:28) is a draft.
Approvals: 0/1The Previously approved version (2016/10/14 06:15) is available.
Approvals: 0/1The Previously approved version (2016/10/14 06:15) is available.
Installation of R packages in the user home
Users can have their own R packages installed. The following steps have to be done:
- Create a .Renviron file, using 'vi' e.g.:
vi ${HOME}/.Renviron
The content of this file points to the directory of your personal libraries, e.g.:
R_LIBS=${HOME}/R/lib
- create the directory, which was specified in .Renviron:
mkdir -p ${HOME}/R/lib
- start R and install packages:
install.packages('sp')