On 22.05.2012 06:24, Richard M. Heiberger wrote:
you do have a dataset x. it is probably inside the test.rda file.
start a fresh R session and library(yourPackage)
then
ls()
data(test)
No, you meant
data(x)
Note that the name of the filename is still the original mname it had
hen creatin
you do have a dataset x. it is probably inside the test.rda file.
start a fresh R session and library(yourPackage)
then
ls()
data(test)
ls() ## you will probably have now have x.
Should you need to use load, then use
load("/full/path/to/test.rda") ## in quotes
ls()
The idiom for saving a data
Hey R-users,
I think I followed the steps but still couldn't figure this out.. I am
creating a personal package and I want to include several datasets in
the package. I created a subdirectory 'data' in the package, save a
dataset 'test.rda' there, built the package, checked it, installed it.
Then
3 matches
Mail list logo