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 <[EMAIL PROTECTED]> 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@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel