[Bioc-devel] NAMESPACE question

Martin Morgan mtmorgan at fhcrc.org
Wed Oct 8 04:16:36 CEST 2014


On 10/07/2014 07:05 PM, Michael Lawrence wrote:
> 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.

I adjusted the wording a bit. I was also quite disturbed to find how similar my 
Suggests illustration is to the advice in Writing R Extensions, 
RShowDoc('R-exts'), section 1.1.3.1.

Martin

>
> On Tue, Oct 7, 2014 at 6:00 PM, Dario Strbenac <dstr7320 at 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 at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/bioc-devel
>>
>
> 	[[alternative HTML version deleted]]
>
> _______________________________________________
> Bioc-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/bioc-devel
>


-- 
Computational Biology / Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N.
PO Box 19024 Seattle, WA 98109

Location: Arnold Building M1 B861
Phone: (206) 667-2793



More information about the Bioc-devel mailing list