User Tools

Site Tools


doku:r-project

Installation of R packages in the user home

Users can have their own R packages installed. The following steps have to be done:

  1. 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
  2. create the directory, which was specified in .Renviron:
    mkdir -p ${HOME}/R/lib 
  3. start R and install packages:
    install.packages('sp')
doku/r-project.txt · Last modified: 2016/10/14 06:15 by markus