Message-ID: <4A21016B.6000703@stats.uwo.ca>
Date: 2009-05-30T09:50:35Z
From: Duncan Murdoch
Subject: Finding package script files
In-Reply-To: <4A20EB65.9090204@stats.waikato.ac.nz>
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