[R-sig-Debian] updating r-cran- packages on a new Ubuntu lucid system

Dirk Eddelbuettel edd at debian.org
Mon Jan 31 04:14:00 CET 2011


On 30 January 2011 at 19:03, Kingsley G. Morse Jr. wrote:
| Hi Dirk,
| 
| Thanks for explaining that you keep packages
| installed by R and package managers in separate
| directories.
| 
| Do you happen to have any advice on how to avoid
| installing conflicting versions of the same
| package?

It's less bad than one may think at first -- 'first one found' usually
wins. So you 

      foo_1.2-4 in /usr/local/lib/R/site-library

wins over

      foo_1.2-3 in /usr/lib/R/site-library

by virtue of being first in the $PATH (cf .libPaths() in R).

Hth,  Dirk

| 
| Thanks,
| Kingsley
| 
| On 01/30/11 20:40, Dirk Eddelbuettel wrote:
| > 
| > For what it's worth, I use the scriipt below (via ~/bin/update.r) which is
| > also an example script in the littler package.  
| > 
| > It _explicitly_ restricts the update to
| > 
| >     /usr/local/lib/R/site-library
| > 
| > so that the update from R is kept separate from the update via the Debian or
| > Ubuntu package manager.
| > 
| > Hope this helps,  Dirk

-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com



More information about the R-SIG-Debian mailing list