Message-ID: <CABsGe_yWJKaQ7hs3jocpEEWqDGmtikSC1+UXY3aE9MQjC8DJ5w@mail.gmail.com>
Date: 2013-03-05T10:21:57Z
From: Johannes Radinger
Subject: Good practice for data() for R-packages
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)?
2) How should these rda-table be used/loaded in the package functions?
is data() still working/okay?
/johannnes