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

From: Frank Harrell <f.harrell_at_vanderbilt.edu>
Date: Tue, 08 Mar 2011 15:53:42 -0800 (PST)


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/site-library')

But sometimes install.packages (with R run as superuser using sudo) will create a directory called x86... under ~/R and put installed packages there. How do I force the system to always use /usr/local/lib/...?

Thanks
Frank



Frank Harrell
Department of Biostatistics, Vanderbilt University
--
View this message in context: http://r.789695.n4.nabble.com/How-to-enforce-location-of-installation-of-downloaded-packages-tp3342495p3342495.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help_at_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.
Received on Tue 08 Mar 2011 - 23:57:58 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 09 Mar 2011 - 19:40:22 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive