[R] Creating datasets in packages

Hutchinson,David [PYR]
Thu, 30 Apr 2009 20:03:05 -0000

I am developing an R package which includes datasets. The build and
install works correctly. However, when I access the dataset
("BowRiver"), I get:

> data(BowRiver)
> BowRiver
Error: object "BowRiver" not found. However, I can access the dataset
from
> data

Example R datasets (such as USArrests) are loaded and can be accessed by
the dataset name:

> data(USArrests)
> USArrests
               Murder Assault UrbanPop Rape
Alabama          13.2     236       58 21.2
Alaska           10.0     263       48 44.5
Arizona           8.1     294       80 31.0
Arkansas          8.8     190       50 19.5
California        9.0     276       91 40.6
...

What am I doing wrong?

Thanks in advance,
Dave


	[[alternative HTML version deleted]]