Re: [Rd] Example input data with example output using relative pathway in vignette of R package?

2015-10-31 Thread Tobias Verbeke
Hi Luck, If your package is installed, system.file("extdata", "InputFiles", package = "myPackage") will give you the full path of the InputFiles directory. See ?system.file for more details. HTH, Tobias - Original Message - > From: "Luck Buttered" > To: "r-devel@r-project.org" > Se

[Rd] Example input data with example output using relative pathway in vignette of R package?

2015-10-31 Thread Luck Buttered
I'm putting together an R package. I would like to show example code in the vignette, where example data files (included in the package) are used to generate an (example) output file. I read about using example data in Hadley Wickham's post ( http://r-pkgs.had.co.nz/data.html), and believe I shoul