Thanks all the issue is closed.

  in this case I had a data element  FILE.PARAMETERS = list(....)

  the .Rd files created by package.skelton() for data objects  had the
following for \usage.



 \usage{data(FILE.PARAMETERS)}

 I left that as is and  CHECK throws a warning.

 "checking for code/documentation mismatches ... WARNING
Data sets with usage in documentation object 'FILE.PARAMETERS' but not in
code:"

changing \usage  cleared the warning

\usage{FILE.PARAMETERS}

clears check!  crantastic, no warnings, no errors!



On Wed, Jun 22, 2011 at 8:29 AM, steven mosher <mosherste...@gmail.com>wrote:

> Thanks Duncan, I'll join Dev and ask the questions over there.
>
> Steve
>
>
> On Wed, Jun 22, 2011 at 7:19 AM, Duncan Murdoch 
> <murdoch.dun...@gmail.com>wrote:
>
>> On 11-06-21 11:58 PM, steven mosher wrote:
>>
>>> Thanks to all your help I've just finished my first package and I have a
>>> couple of questions
>>>
>>>
>>>
>>>   I want to submit to CRAN but I have  1 warning
>>>
>>>  " checking for code/documentation mismatches ... WARNING
>>> Data sets with usage in documentation object 'FILE.PARAMETERS' but not in
>>> code:
>>>   FILE.PARAMETERS"
>>>
>>> I actually have a few instances with the same issue. I have a handful of
>>> data objects, things like URLs
>>> and some file parameters ( like column widths etc). These are declared in
>>> an
>>> R file and then loaded
>>> (lazyData no)
>>>
>>> There are help files for all these objects, and some of them get used in
>>> the
>>> code as defaults for when
>>> functions are called
>>>  foo<- function( x, y=FILE.PARAMETERS)
>>>
>>> So why do I get this warning? is it one I have to fix? and should I be
>>> asking this on the dev list?
>>>
>>
>> Yes, you should fix almost all warnings, and yes, questions like this
>> belong on the R-devel list.
>>
>> When you ask there, it would be helpful to be very specific:  show us the
>> start of the Rd file that is being complained about (the \usage and \docType
>> sections are of particular interest), and give us the exact details about
>> how the data object is being created.
>>
>> Duncan Murdoch
>>
>>
>>> Thanks again for all your help, hope this is right place to ask.
>>>
>>>        [[alternative HTML version deleted]]
>>>
>>> ______________________________**________________
>>> R-help@r-project.org mailing list
>>> https://stat.ethz.ch/mailman/**listinfo/r-help<https://stat.ethz.ch/mailman/listinfo/r-help>
>>> PLEASE do read the posting guide http://www.R-project.org/**
>>> posting-guide.html <http://www.R-project.org/posting-guide.html>
>>> and provide commented, minimal, self-contained, reproducible code.
>>>
>>
>>
>

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org 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.

Reply via email to