From ggrothendieck at gmail.com  Fri Oct 10 22:34:00 2008
From: ggrothendieck at gmail.com (Gabor Grothendieck)
Date: Fri, 10 Oct 2008 16:34:00 -0400
Subject: [Rd] relative path to source files in vignette
In-Reply-To: <48EFA380.8080801@web.de>
References: <48EF9CAD.8090006@web.de>
	<971536df0810101127n49084413pd97ec451e3040228@mail.gmail.com>
	<48EFA380.8080801@web.de>
Message-ID: <971536df0810101334w12014877t408732c9f12edc20@mail.gmail.com>

Try placing a copy of the files in the inst directory and then
accessing them via system.files("myfile.R", package = "mypackage")
or place them in the same directory as the Sweave file
and then access them without a directory path at all:
readLines("myfile.R")


On Fri, Oct 10, 2008 at 2:48 PM, Peter Ruckdeschel
<peter.ruckdeschel at web.de> wrote:
> Gabor Grothendieck schrieb:
>> See ?system.file with the package= argument.
>>
>
> Thank you Gabor,
>
> but this refers to the /installed/ package, while we are needing
> path information about the not-yet-built source code of the
> package during R CMD check / build.
>
> Peter
>



[Rd] relative path to source files in vignette
Gabor Grothendieck