Ah yes!

> system.file("scripts/ch01.R", package="nlme")
[1]"/Library/Frameworks/R.framework/Resources/library/nlme/scripts/ch01.R"

Thanks, Duncan; thanks Kjell.

Murray

Duncan Murdoch wrote:
On 30/05/2009 4:16 AM, Murray Jorgensen wrote:
On my PC I know where to find R scripts that are distributed with many packages such as nlme.

I tried to find them on my Mac recently and realised that I don't know where to look.

Can anyone let me know?

Something like

 system.file("scripts/ch01.R", package="nlme")

should work on any system. You can use that for any file installed with a package if you know the path relative to the top of the package directory.

Duncan Murdoch


--
Dr Murray Jorgensen      http://www.stats.waikato.ac.nz/Staff/maj.html
Department of Statistics, University of Waikato, Hamilton, New Zealand
Email: m...@waikato.ac.nz    majorgen...@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@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to