Re: [R] Another packaging question

From: Johannes Huesing <johannes_at_huesing.name>
Date: Sun, 13 Jul 2008 18:42:08 +0200

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-

-- 
Johannes Hüsing               There is something fascinating about science. 
                              One gets such wholesale returns of conjecture 
mailto:johannes_at_huesing.name  from such a trifling investment of fact.                
http://derwisch.wikidot.com         (Mark Twain, "Life on the Mississippi")

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Sun 13 Jul 2008 - 16:48:36 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 Sun 13 Jul 2008 - 17:31:29 GMT.

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

list of date sections of archive