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@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.

______________________________________________
R-help@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.

Reply via email to