I think the intent there is that if you virtually always need a package to
generate the input or analyze the output of a documented function, it
should be in Depends. If it's a package that is only useful for
demonstration, it should be in Suggests, and one should abide by the same
guidelines (requireNamespace, etc) as Martin contributed.

On Tue, Oct 7, 2014 at 6:00 PM, Dario Strbenac <dstr7...@uni.sydney.edu.au>
wrote:

> The guidelines state :
>
> Depends: is appropriate when a package is used in the example section of a
> man page.
>
> I think such packages should be in Suggests. In the example, the package
> should be loaded by :
>
> if(require(examplePackage))
> {
>   exampleFunction(data)
> }
>
> --------------------------------------
> Dario Strbenac
> PhD Student
> University of Sydney
> Camperdown NSW 2050
> Australia
> _______________________________________________
> Bioc-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/bioc-devel
>

        [[alternative HTML version deleted]]

_______________________________________________
Bioc-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/bioc-devel

Reply via email to