From kjetil at acelerate.com  Sat Apr 30 13:56:35 2005
From: kjetil at acelerate.com (Kjetil Brinchmann Halvorsen)
Date: Sat Apr 30 13:56:44 2005
Subject: [Rd] Re: [R] Warning from Rcmd check - data could not find data set
In-Reply-To: <Pine.LNX.4.61.0504300702540.19431@gannet.stats>
References: <4272E9D6.7030706@acelerate.com>
	<Pine.LNX.4.61.0504300702540.19431@gannet.stats>
Message-ID: <42737273.6070404@acelerate.com>

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.


[Rd] Re: [R] Warning from Rcmd check - data could not find data set
Kjetil Brinchmann Halvorsen