[R] Data sets with usage in documentation object but not in code

Peter Dalgaard P.Dalgaard at biostat.ku.dk
Thu Nov 29 18:30:47 CET 2007


Prof Brian Ripley wrote:
> On Thu, 29 Nov 2007, Jonathan Weeks wrote:
>
>   
>> All,
>>
>> I recently made some changes to my package and ran R CMD check, but I
>> am getting a warning regarding my data sets.
>>
>> I am running R 2.6.1 I have an image (.RData) file containing five
>> data sets in the data subdirectory and an .Rd file for each of the
>> data sets in the man subdirectory. When I run the check I get the
>> warning
>> "Data sets with usage in documentation object <dataset name> but not
>> in code" for each dataset. I did not get this warning with R 2.5
>>
>> Does anyone have a suggestion for how to handle this?
>>     
>
> Show us a small reproducible example, or (failing that) make the package 
> available for test?  It's hard to guess at the cause, and hundreds of 
> packages do similar things.
>
>   
You could also look at the output of

tools:::list_data_in_pkg("yourPkg") 

and see if it makes you any wiser. (AFAICS, this is the list that the
usage lines get compared to)

-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907



More information about the R-help mailing list