Displaying 1 result from an estimated 1 matches for "toy_foo".
2009 Nov 12
1
S4 objects in the data directory
...vided by the package, so that the data file can also be
used without having to load the package"
My current minimal self-contained example follows.
le112:~% cat ./anRpackage/R/f.R
setClass("foo", representation=representation(x="numeric"))
le112:~% cat ./anRpackage/data/toy_foo.R
"toy_foo" <- new("foo",x=rep(2,7))
fails R CMD check (transcript below)
It fails because the class isn't defined. I can
add 'require(anRpackage)' to the toy_foo.R
but I'm not sure if this is consistent with the above
advice in R-exts (and it
fails R CMD ch...