Re: [R] How to specify where add-on packages should be installed

From: Patrick Connolly <>
Date: Wed, 12 Mar 2008 08:23:48 +1300

On Tue, 11-Mar-2008 at 10:51PM +0800, Ng Stanley wrote:

|> Hi,
|> I am running R on a cluster. Basic packages are installed at
|> ~/MyHome/lib64/R/library/ and add-ons packages are installed at
|> ~/R/x86_64-redhat-linux-gnu-library/2.5/. Both directories were created by R
|> by default.
|> Problems arises when I use add-on packages, R complains that they can't be
|> found and exit. As a hack, I copied the add-on packages to where basic
|> packages are installed.
|> Questions:
|> A) Can I specify where the add-on packages should be installed, and how ? I
|> would like to install them at where the basic packages are.

Do you have an environment setting for R_LIBS? I use that to put them in a *different* place from where the basic packages go, so my guess is that if you set that variable to be the same, that would do what you want.


   ___    Patrick Connolly   
 {~._.~}          		 Great minds discuss ideas    
 _( Y )_  	  	        Middle minds discuss events 
(:_~*~_:) 	       		 Small minds discuss people  
 (_)-(_)  	                           ..... Anon

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 11 Mar 2008 - 19:27:25 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 Tue 11 Mar 2008 - 19:30:25 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive