What's the logic behind the different installation locations of various R packages? I seem to have packages installed in several different locations on my linux machine. Is this typical behavior and if so what is the rational for installing a package in /usr/lib/R/library
vs /usr/lib/R/site-library
? I don't really care where the package is installed but it does seem kind of silly to have the installations spread out in different locations across my system.
Renviron
has the comment below, which seems to suggest that /usr/lib/R/site-library
is for Debian packaged packages, but doesn't really explain the purpose of the other two directories. Also, by setting /usr/lib/R/library
last in the list doesn't that make it not the default dir for install.packages()
?
# edd Apr 2003 Allow local install in /usr/local, also add a directory for
# Debian packaged CRAN packages, and finally the default dir
> .libPaths()
[1] "/usr/local/lib/R/site-library" "/usr/lib/R/site-library"
[3] "/usr/lib/R/library"