How to install an R package in your home directory.
Many R packages are already packaged to be used with Debian (the Linux distribution CAE uses); however, some packages are too new to be included with the operating system. If they are packaged as an R CRAN package they can be installed in a user's home directory.
To use locally installed R packages you will need to create a place for them:
mkdir ~/R/; mkdir ~/R/libs/You will also need to tell R where this place is:
echo 'R_LIBS_USER="~/R/library"' > $HOME/.RenvironOnce this is done you can install as many packages there as your quota allows.
Given a package named: mypackage.tar.gz
R CMD INSTALL -l ~/R/libs/ mypackage.tar.gz
At this point, your package is installed. Please refer to the package documentation for instructions on usage.