Re: [Rd] relative path to source files in vignette

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Fri, 10 Oct 2008 16:34:00 -0400

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
>



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri 10 Oct 2008 - 20:35:47 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 11 Oct 2008 - 00:30:19 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive