Kjetil Brinchmann Halvorsen
2005-Apr-30 02:13 UTC
[R] Warning from Rcmd check - data could not find data set
This is rw2010 from CRAN. When running Rcmd check on a package I get: Warning in utils::data(list = al, envir = data_env) : data set 'vowel.test' not found Warning in utils::data(list = al, envir = data_env) : data set 'vowel.train' not found Warning in utils::data(list = al, envir = data_env) : data set 'waveform.test' not found Warning in utils::data(list = al, envir = data_env) : data set 'waveform.train' not found However, I have no problem with this when using the package. This datasets are loaded, multiple datasets at a time, under another name. data(vowel) loads the two first in the list above. Could it be this (which should be allowed, is mentioned in "writing R extensions") or is it something else, or a bug? Kjetil -- Kjetil Halvorsen. Peace is the most effective weapon of mass construction. -- Mahdi Elmandjra -- No virus found in this outgoing message. Checked by AVG Anti-Virus.
Prof Brian Ripley
2005-Apr-30 06:10 UTC
[R] Warning from Rcmd check - data could not find data set
On Fri, 29 Apr 2005, Kjetil Brinchmann Halvorsen wrote:> This is rw2010 from CRAN. > > When running Rcmd check > on a package I get: > > Warning in utils::data(list = al, envir = data_env) : > data set 'vowel.test' not found > Warning in utils::data(list = al, envir = data_env) : > data set 'vowel.train' not found > Warning in utils::data(list = al, envir = data_env) : > data set 'waveform.test' not found > Warning in utils::data(list = al, envir = data_env) : > data set 'waveform.train' not found > > > However, I have no problem with this when using the package. > > This datasets are loaded, multiple datasets at a time, under another name. > data(vowel) loads the two first in the list above. Could it be this > (which should be allowed, is mentioned in "writing R extensions") > or is it something else, or a bug?Such issues are probably best for R-devel. There is nothing to reproduce here, which could well be considered a bug in your posting. It seems likely that your package's documentation has an alias for 'vowel.test' in a man page marked as \docType{data}, yet data('vowel.test') does not work. That seems like a bug in your package. Using LazyData makes such things much more consistent. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Kjetil Brinchmann Halvorsen
2005-Apr-30 13:56 UTC
[Rd] Re: [R] Warning from Rcmd check - data could not find data set
Prof Brian Ripley wrote:> On Fri, 29 Apr 2005, Kjetil Brinchmann Halvorsen wrote: > >> This is rw2010 from CRAN. >> >> When running Rcmd check >> on a package I get: >> >> Warning in utils::data(list = al, envir = data_env) : >> data set 'vowel.test' not found >> Warning in utils::data(list = al, envir = data_env) : >> data set 'vowel.train' not found >> Warning in utils::data(list = al, envir = data_env) : >> data set 'waveform.test' not found >> Warning in utils::data(list = al, envir = data_env) : >> data set 'waveform.train' not found >> >> >> However, I have no problem with this when using the package. >> >> This datasets are loaded, multiple datasets at a time, under another >> name. >> data(vowel) loads the two first in the list above. Could it be this >> (which should be allowed, is mentioned in "writing R extensions") >> or is it something else, or a bug? > > > Such issues are probably best for R-devel.(changed it)> > There is nothing to reproduce here, which could well be considered a > bug in your posting.Yes, indeed. But I did'nt know how to make something reproducible without attaching the package, which does'nt make sense.> > It seems likely that your package's documentation has an alias for > 'vowel.test' in a man page marked as \docType{data}, yet > data('vowel.test') does not work.Yes, indeed. But "Writing R extensions" has: "If your data files are enormous you can speed up installation by providing a file datalist in the data subdirectory. This should have one line per topic that |data()| will find, in the format foo if |data(foo)| provides foo, or foo: bar bah if |data(foo)| provides bar and bah." which seems to permite that data(vowel) makes 'vowel.test' available (and 'vowel.train') without making 'vowel' available. And the help for help pages says that only one data object should be documented for each help page, so it seems to be necesary with one help page for 'vowel.test' and one for 'vowel.train'. So what to do? Kjetil> That seems like a bug in your package. > Using LazyData makes such things much more consistent. >-- Kjetil Halvorsen. Peace is the most effective weapon of mass construction. -- Mahdi Elmandjra -- No virus found in this outgoing message. Checked by AVG Anti-Virus.