[R] Simple package question
Uwe Ligges
ligges at statistik.tu-dortmund.de
Thu Jan 22 17:34:40 CET 2009
Terry Therneau wrote:
> With respect to scripts in the "tests" directory of a package:
> Can they depend on data sets found in the 'data' directory of said package?
> -available by default
> - need to use a data() call
> - need to explicitly attach?
Terry,
you need to load the package and then it depends on your package's
settings. If you need to load the data by data() when your package is
installed, you will also need a call to data() in your test scripts.
So for short, it behaves like your regularly installed package.
Best,
Uwe
> This isn't clear to me from reading the documentation in section 1.1.3 of the
> "Writing R Extensions" document.
>
> Terry Therneau
>
> ______________________________________________
> 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.
More information about the R-help
mailing list