[R] Installing packages on OS X

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Sep 9 13:22:49 CEST 2004

Here's my guess:

R CMD INSTALL installs to .Library, and does not look at R_LIBS unless set 
in its environment.

install.packages() installs at .libPaths()[1], and uses all the library 
trees available.  So if you have R_LIBS set in ~/.Renviron (as I have), or 
.libPaths() set in .Rprofile or elsewhere, you need to set R_LIBS in your 
shell before calling R CMD check (l/case).

On 9 Sep 2004, Jari Oksanen wrote:

> On Wed, 2004-09-08 at 21:25, hadley wickham wrote:
> > On my computer, it seems that (binary?) packages installed through the
> > GUI in RAqua are not used available to the command line version of R,
> > while (source) packages installed with R CMD INSTALL are available to
> > both.  This is a problem when I run R CMD CHECK on a package that I am
> > creating that depends on packages I have installed through the gui.
> > 
> > Is this a problem with my installation of R, or a known limitation?
> > (there is no mention of this in the Mac OS X faq, however, the entire
> > section entitled "Installing packages" is blank).
> > 
> It is in some other FAQ... Unfortunately, I don't have a Mac available
> now, so I can't check. However, seek for "environmental variables" and
> "setting library paths" in some other R FAQ or R
> Administration/Installation guide. There will you find a description of
> things you should do. It is just as crystal clear as unix man pages:
> everything is clear *after* you know what is said there, but you may
> have hard time noticing this clarity.
> I solved this problem some months ago after a long search among the
> official documentation. So it is documented, but well hidden.
> I may have a look at a machine where I solved this in the evening
> (UTC+3), if you won't get solution before that.
> cheers, jari oksanen

Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

More information about the R-help mailing list