[Rd] Suggests and examples

From: Jay Emerson <jayemerson_at_gmail.com>
Date: Sun, 03 Apr 2011 13:31:07 -0400


I apologize in advance for probably missing something obvious, but if someone could point me in the right direction I'd be grateful. This NOTE is not unique to our package (I list a few others, below).

Package bcp has several Suggests (strucchange, for example).

Then in an Rd file, we have

if (require(strucchange)) {

  # Doing some examples making use of strucchange

}

The CRAN check results reports the following NOTE:

checking for unstated dependencies in examples ... NOTE 'library' or 'require' calls not declared from: DNAcopy coda strucchange

I note the same problems in other packages (e1071, Deducer, diveMOVE, gplots, ...)

Any hints? I'm pretty confident that Suggests: is preferable to Depends: in such a case, but I can't seem to address this note. Thanks,

Jay

-- 
John W. Emerson (Jay)
Associate Professor of Statistics
Department of Statistics
Yale University
http://www.stat.yale.edu/~jay

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Sun 03 Apr 2011 - 17:35:15 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 03 Apr 2011 - 18:40:41 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive