On 05.03.2013 11:21, Johannes Radinger wrote:> Hi,
>
> I am compiling a R-package and have two tables (.rda files) that are used
> by the functions in my package. In the manual for ?data
> (http://stat.ethz.ch/R-manual/R-patched/library/utils/html/data.html),
> there is a chapter on good practice for such "sysdata"..
>
> However what is not clear to me yet:
>
> 1) Probably I need to do the second approach:
> "For objects which are system data, for example lookup tables used in
> calculations within the function, use a file ?R/sysdata.rda? in the
> package sources or create the objects by R code at package
> installation time."
> But what if I have two rda-files? Is the "sysdata.rda" a fixed
name
> (name convention)?
But both objects into the same rda file.
> 2) How should these rda-table be used/loaded in the package functions?
> is data() still working/okay?
The objects will be available in your NAMESPACE.
Best,
Uwe ligges
>
> /johannnes
>
> ______________________________________________
> 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.
>