[R] .libPaths(new) stopped working in 2.10

Alexy Khrabrov deliverable at gmail.com
Sun Dec 6 20:32:10 CET 2009


I used to have the following in my .Rprofile:

if (length(.libPaths())==1)
.libPaths(paste(Sys.getenv("HOME"),"/Library/R/",paste(R.version$major,as.integer(R.version$minor),sep='.'),"/library",sep=''))

-- and it added my user-defined library directory.  Then I installed
packages there, so during an upgrade, I'd know exactly which packages
I installed and auto-upgrade with a script.

However, in R 2.10's Mac OSX GUI, .libPaths(new) does nothing...  Did
its behavior change?

Cheers,
Alexy




More information about the R-help mailing list