From ligges at statistik.tu-dortmund.de  Sun Apr  3 19:57:47 2011
From: ligges at statistik.tu-dortmund.de (Uwe Ligges)
Date: Sun, 03 Apr 2011 19:57:47 +0200
Subject: [Rd] Suggests and examples
In-Reply-To: <AANLkTim44NPkxsUf4CYuERs2hQPFc3aH+XkiGSFamS3E@mail.gmail.com>
References: <AANLkTim44NPkxsUf4CYuERs2hQPFc3aH+XkiGSFamS3E@mail.gmail.com>
Message-ID: <4D98B51B.6000809@statistik.tu-dortmund.de>



On 03.04.2011 19:31, Jay Emerson wrote:
> 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).


Well, at least the version ion CRAN does not have any Suggests entry in 
its DESCRIPTION file...

Uwe



> 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
>
>



[Rd] Suggests and examples
Uwe Ligges