Re: [R] How to enforce location of installation of downloaded packages

2011-03-09 Thread Gabor Grothendieck
On Wed, Mar 9, 2011 at 6:09 PM, Frank Harrell 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 .Rprofi

Re: [R] How to enforce location of installation of downloaded packages

2011-03-09 Thread Frank Harrell
Thanks Uwe. Too bad there is no system option I can set one time, that will always take precedence. Frank Uwe Ligges-3 wrote: > > install.packages(, lib='/usr/local/lib/R/site-library') > > otherwise you have to ensure that this library is the first one in > .libPaths() and watch out th

Re: [R] How to enforce location of installation of downloaded packages

2011-03-09 Thread Uwe Ligges
install.packages(, lib='/usr/local/lib/R/site-library') otherwise you have to ensure that this library is the first one in .libPaths() and watch out that it is not changed by any of the many mechanisms that allow for adding libraries to the search path. Uwe On 09.03.2011 00:53, Frank Ha

[R] How to enforce location of installation of downloaded packages

2011-03-08 Thread Frank Harrell
Using R on Linux I want to force downloaded packages to go into /usr/local/lib/R/site-library. I have an .Rprofile file in my home directory containing the following: options(help_type='html', browser='chromium-browser', repos='http://www.ibiblio.org/pub/languages/R/CRAN', lib='/usr/local/lib/R/s