Ng Stanley
2008-Mar-11 14:51 UTC
[R] How to specify where add-on packages should be installed
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. B) I even specify explicity the path of add-on packages by library(gplots, lib.loc="~/R/x86_64-redhat-linux-gnu-library/2.5/"). That still fails, what should be the correct way ? Thanks [[alternative HTML version deleted]]
Patrick Connolly
2008-Mar-11 19:23 UTC
[R] How to specify where add-on packages should be installed
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
--
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
___ Patrick Connolly
{~._.~} Great minds discuss ideas
_( Y )_ Middle minds discuss events
(:_~*~_:) Small minds discuss people
(_)-(_) ..... Anon
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.