[R-SIG-Mac] Finding package script files
Murray Jorgensen
maj at stats.waikato.ac.nz
Sat May 30 11:56:36 CEST 2009
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: 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
More information about the R-SIG-Mac
mailing list