[Rd] relative path to source files in vignette

Gabor Grothendieck ggrothendieck at gmail.com
Fri Oct 10 22:34:00 CEST 2008


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
>



More information about the R-devel mailing list