Skip to content
Prev 178977 / 398503 Next

Creating datasets in packages

In developing the package, I have associated datasets (*.rda) stored in the data sub-directory. I built and installed the package successfully.

When I load the BowRiver dataset and USArrests
[1] "data"      "USArrests"

Why is mine stored as "data" and not "BowRiver"?

-----Original Message-----
From: Sarah Goslee [mailto:sarah.goslee at gmail.com] 
Sent: Thursday, April 30, 2009 1:18 PM
To: Hutchinson,David [PYR]
Cc: r-help at r-project.org
Subject: Re: [R] Creating datasets in packages

The key question:
We don't know what you _did_. How did you save the data?
Did you follow the directions in the Writing R Extensions manual? Does ls() show the dataset? etc.

You can "access the dataset from data" - do you mean that you can load the data directly from the data directory within your package? How?

Sarah
On Thu, Apr 30, 2009 at 4:03 PM, Hutchinson,David [PYR] <David.Hutchinson at ec.gc.ca> wrote:
--
Sarah Goslee
http://www.functionaldiversity.org