Hello all, I have,say 4 R objects... bar1, bar2, bar3, bar4.. that I'd like to include in an R package "foobar".
The desired functionality would be: > library(foobar) > data(foo) > ls() [1] "bar1" "bar2" "bar3" "bar4" I've tried the following two approaches: 1) I created the file 'datalist' under pre-build directory 'foobar/data/' with the following contents: foo: bar1 bar2 bar3 bar4 After package build and install, "data(foo)" reports that data set 'foo' not found (bar1, bar2, etc are all available individually, and are listed under data() as "bar1 (foo)". 2) I created an image via save.image resulting in foo.rda (containing bar1, bar2, etc). data(foo) now loads bar1 - bar4, but 'foo' doesn't appear in the list of available datasets displayed when trying to tab complete within data(). So my question is, what's the correct approach for what I'm trying to do here? Any advice welcome and appreciated. Thanks, Andrew [[alternative HTML version deleted]] ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel