[R-SIG-Mac] Finding package files

John Maindonald john.maindonald at anu.edu.au
Fri Feb 4 00:56:44 CET 2011


> system.file()
[1] "/Library/Frameworks/R.framework/Resources/library/base"

There is much else that you can do with system.file(), 
e.g.
> system.file("misc/ViewTemps.RData", package="DAAG")
[1] "/Library/Frameworks/R.framework/Resources/library/DAAG/misc/ViewTemps.RData"

On windows systems, you might want to use normalizepath() as a wrapper.
Cheers
John.

John Maindonald             email: john.maindonald at anu.edu.au
phone : +61 2 (6125)3473    fax  : +61 2(6125)5549
Centre for Mathematics & Its Applications, Room 1194,
John Dedman Mathematical Sciences Building (Building 27)
Australian National University, Canberra ACT 0200.
http://www.maths.anu.edu.au/~johnm

On 04/02/2011, at 12:30 PM, Murray Jorgensen wrote:

> On my PC I can find my R package files under
> C:\apps\R\R-2.12.1\library
> (we seem to have a local tradition here to use 'apps' rather than 'Program Files').
> 
> I think I have done a fairly standard R install on my Mac. Where might I expect the package files to be?
> 
> Cheers,  Murray
> 
> -- 
> Dr Murray Jorgensen      http://www.stats.waikato.ac.nz/Staff/maj.html
> Department of Statistics, University of Waikato, Hamilton, New Zealand
> Email: maj at waikato.ac.nz    majorgensen at ihug.co.nz      Fax 7 838 4155
> Phone  +64 7 838 4773 wk    Home +64 7 825 0441   Mobile 021 0200 8350
> 
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac



More information about the R-SIG-Mac mailing list