Skip to content

How to specify where add-on packages should be installed

2 messages · Ng Stanley, Patrick Connolly

#
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.

HTH