[R] Including data when building an R package in windows

From: michael watson (IAH-C) <michael.watson_at_bbsrc.ac.uk>
Date: Wed, 09 May 2007 10:58:26 +0100

I've done this before, but when I tried the same thing this time, it didn't work.

I'm using R 2.4.1 on windows.

I have 6 data frames that I want to include in a package I am building. Instead of making users issue six different "data(...)" commands, I want to wrap them all up in one file so that users issue one "data(...)" command and have access to all six data sets.

I had the functions and data loaded in R, nothing else, used package.skeleton() to create the structure.

Edited everything I needed to (help etc)

Ran "R CMD INSTALL --build DetectiV" in MS-DOS, the package built.

Installed the zip file. Everything fine.

In R:


Warning message:
data set 'DetectiV' not found in: data(DetectiV)

C:\Program Files\R\R-2.4.1\library\DetectiV\data contains filelist and Rdata.zip.

filelist is:


Rdata.zip contains a file called DetectiV.Rdata.

This the exact same structure I have in place for another of my packages - and that one works when I issue data(...) commands, whereas this one doesn't.

So, any ideas what I am doing wrong?


R-help_at_stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 09 May 2007 - 10:04:23 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 09 May 2007 - 10:31:30 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.