[R] .libPaths(new) stopped working in 2.10
Rolf Turner
r.turner at auckland.ac.nz
Sun Dec 6 21:19:26 CET 2009
On 7/12/2009, at 8:32 AM, Alexy Khrabrov wrote:
> 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?
It works fine for me, both from the GUI and from the command line
startup:
> .libPaths()
[1] "/Library/Frameworks/R.framework/Resources/library"
> .libPaths(new="/Users/rturner/Rlib")
> .libPaths()
[1] "/Users/rturner/Rlib"
[2] "/Library/Frameworks/R.framework/Resources/library"
> sessionInfo()
R version 2.10.0 (2009-10-26)
i386-apple-darwin8.11.1
locale:
[1] C
attached base packages:
[1] datasets utils stats graphics grDevices methods base
other attached packages:
[1] misc_0.0-11 fortunes_1.3-6 MASS_7.3-3
cheers,
Rolf Turner
######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
More information about the R-help
mailing list