Making R Load libraries at startup

There are sometimes things that I want to do, and have to spend a while figuring out. So I am going to store that knowledge on here.

Loading R libraries at start… (works in Opensuse linux)

Easy, create a file in /usr/lib64/R/etc called ‘Rprofile.site’. Put in that file the libraries you want to load.

library(ggplot2)

When you load R those libraries with be loaded.

Right, next time I reinstall my system I will know where to look if I have forgotten…

About phil

Complex Systems Scientist.
This entry was posted in Linux Tips. Bookmark the permalink.