[R] How to enforce location of installation of downloaded packages
Gabor Grothendieck
ggrothendieck at gmail.com
Thu Mar 10 00:18:02 CET 2011
On Wed, Mar 9, 2011 at 6:09 PM, Frank Harrell <f.harrell at vanderbilt.edu> wrote:
> Thanks Uwe. Too bad there is no system option I can set one time, that will
> always take precedence.
>
You could use the Defaults package to change the default value of the
lib argument of install.packages. That is put this in your .Rprofile
file:
library(Defaults)
setDefaults(install.packages, lib = "...whatever...")
Now you can issue commands like this and the packages in question will
go into ...whatever... regardless of various settings:
install.packages("Hmisc")
--
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com
More information about the R-help
mailing list