If you have corrections or general tips regarding this documentation, please contact us at support@c3se.chalmers.se

Installing local R libraries🔗

If you want to use an R library that's not installed on our systems you can install it locally. Just add


in your install.packages() and library() calls (replacing the path with something suitable)

You can also add the path to an environment variable $R_LIBS. That way you don't have to specify it to the library() calls. Either add it in your .bashrc or in an .Renviron file in your home directory. It's possible to add multiple directories to the R_LIBS variable, to keep different libraries separate.