[R] Another packaging question

Uwe Ligges ligges at statistik.tu-dortmund.de
Sun Jul 13 18:50:53 CEST 2008

Johannes Huesing wrote:
> Uwe Ligges <ligges at statistik.tu-dortmund.de> [Sat, Jul 12, 2008 at 11:48:38AM CEST]:
>> Johannes Huesing wrote:
>>> I am still trying to build a package. At the moment I am stuck with a
>>> file not found error message when processing R code from the tests
>>> subdirectory. What would be the accurate relative path for files in
>>> the tests directory to access files in the data directory?
>> You do not need a path. Just say
>>   data("your_data's_name")
>> (if data is not already under Lazy Loading) in the R code. I guess you  
>> rely on an installed package when the tests are executed, don't you?
> Yes, that did it, thank you. 
> Yes, and I had to learn that I have to include library(packagename) 
> in the example files-

Not in the examples but in the tests, as far as I know.


More information about the R-help mailing list