[R-SIG-Mac] Finding package script files

Duncan Murdoch murdoch at stats.uwo.ca
Sat May 30 11:50:35 CEST 2009


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



More information about the R-SIG-Mac mailing list