[Rd] R_LIBS and R Cocoa GUI for Mac OS X (PR#7308)
ripley at stats.ox.ac.uk
ripley at stats.ox.ac.uk
Sat Oct 23 17:31:12 CEST 2004
It stems from the following code in src/library/profile/Rprofile.unix
if(.Platform$GUI == "AQUA") {
...
if( !file.exists("~/Library/R") )
dir.create(path.expand("~/Library/R"))
if( !file.exists("~/Library/R/library") )
dir.create(path.expand("~/Library/R/library"))
.libPaths(path.expand("~/Library/R/library"))
}## end "Aqua"
which looks quite intentional, and looks like it was done for 1.9.0.
I suggest this section is conditionalized on
if(!length(Sys.getenv("R_LIBS")) { # note the simpler form!
}
since presumbably the intention is to have a local library tree for
install.binaries() to use, and it is wrong to override the standard system
setting via R_LIBS (which has in fact been ignored).
David: edit library/base/R/Rprofile if you want a quick fix on a binary
installation.
On Sat, 23 Oct 2004 d.firth at warwick.ac.uk wrote:
> Full_Name: David Firth
> Version: 2.0.0
> OS: Mac OS 10.3.5
> Submission from: (NULL) (81.178.234.156)
>
>
> When running R in R Cocoa GUI 1.0 (v2004-10-14), I have
>
> > Sys.getenv()[["R_LIBS"]]
> [1] "/Users/david/Library/R"
> > .libPaths()
> [1] "/Users/david/Library/R/library"
> [2] "/Library/Frameworks/R.framework/Resources/library"
>
> The pasting of "/library" after "/Users/david/Library/R" is unexpected: I did
> not find it documented, and it does not happen when I run the same R version by
> other means, for example through Terminal.app.
>
> Version info below.
>
> Best regards,
> David
>
> > version
> _
> platform powerpc-apple-darwin6.8
> arch powerpc
> os darwin6.8
> system powerpc, darwin6.8
> status
> major 2
> minor 0.0
> year 2004
> month 10
> day 04
> language R
>
> ______________________________________________
> R-devel at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>
--
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-devel
mailing list