[R] /usr/lib/R/library vs /usr/local/lib/R/site-library

Mahmood Arai ma at ne.su.se
Wed Oct 29 16:47:42 CET 2003


Frank E Harrell Jr wrote:

>I would appreciate getting a clarification of /usr/lib/R/library vs /usr/local/lib/R/site-library.  I am running R 1.8 on Debian Linux.  On one occasion doing update.packages() resulted in versions of one or more libraries being placed in one of these directories without removing the old version, and the old version took precedence over the new.  I'm sorry I did not save the steps I used.  I would appreciate reading how best to manage libraries.  Currently I have the following in /usr/local/lib/R/site-library: Design, Hmisc, Rcmdr, acepack, car.  /usr/lib/R/library contains the following:
>
>KernSmooth  boot     eda      lqs      modreg  nnet     stepfun   ts
>MASS        class    foreign  methods  mva     rpart    survival
>R.css       cluster  grid     mgcv     nlme    spatial  tcltk
>base        ctest    lattice  mle      nls     splines  tools
>
>Thanks -Frank
>---
>Frank E Harrell Jr    Professor and Chair            School of Medicine
>                      Department of Biostatistics    Vanderbilt University
>---
>Frank E Harrell Jr    Professor and Chair            School of Medicine
>                      Department of Biostatistics    Vanderbilt University
>
>______________________________________________
>R-help at stat.math.ethz.ch mailing list
>https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>  
>
I had the same problem on my workstation -  stable version of debian. 
probably depending on a site-installation based on
the R- source files.

I removed usr/local/lib/R,  changed the line  R_LIBS to 
R_LIBS=${R_LIBS-'/usr/lib/R/library'} in /etc/R/Renviron
and installed the missing packages again, they were installed in 
/usr/lib/R/library and
seem to work well - at least so long.

mahmood arai




More information about the R-help mailing list