On Wed, Mar 9, 2011 at 6:09 PM, Frank Harrell <f.harr...@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 ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.