On 09/05/2007 6:12 AM, michael watson (IAH-C) wrote: > Turns out calling the file DetectiV.rda (rather than .Rdata) fixed it.
The documentation says to use ".RData", not ".Rdata". Case-sensitivity is important here, because you're building something that is supposed to be portable across many platforms. Duncan Murdoch > Odd. > > > -----Original Message----- > From: michael watson (IAH-C) > Sent: Wed 09/05/2007 11:09 AM > To: michael watson (IAH-C); [email protected] > Subject: RE: [R] Including data when building an R package in windows > > I forgot to mention. After using package.skeleton(), I replaced the six .rda > files with a single .Rdata file that contained all six data frames. > > -----Original Message----- > From: [EMAIL PROTECTED] on behalf of michael watson (IAH-C) > Sent: Wed 09/05/2007 10:58 AM > To: [email protected] > Subject: [R] Including data when building an R package in windows > > 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: > >> library(DetectiV) >> data(DetectiV) > 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: > > DetectiV.Rdata > filelist > > 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? > > Thanks > Mick > > ______________________________________________ > [email protected] 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. > > ______________________________________________ > [email protected] 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. ______________________________________________ [email protected] 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.
