[Bioc-devel] Avoiding pkgs in Depends
hpages at fhcrc.org
Wed Mar 21 23:05:53 CET 2012
On 03/21/2012 01:12 PM, Benilton Carvalho wrote:
> say I need a few functions from Biobase and for a number of reasons I
> don't want it in Depends.
> So I add it to Imports and, in my NAMESPACE file, I add something like:
> importFrom(Biobase, assayDataElementNames)
> Everything works as expected...
> But if I want to use assayDataElementNames in one of the examples, it
> won't be available for obvious reasons.
> What is the proper strategy to follow?
> 1) Do a library(Biobase) explicitly in the example? (Maybe
> library(pkg) is only bad within methods/functions, but acceptable in
I would do 1). The user also needs to be able to access the man page
for the things s/he is using. Does that mean that maybe you should
also put Biobase in Suggests? I'm not sure: technically it's not
needed since Biobase will get installed anyway when your package is
> 2) Use Biobase::assayDataElementNames in the example?
> 3) Export, from my package, assayDataElementNames??? This seems
> incorrect/inappropriate and will even bug me to write a man page for
> assayDataElementNames, which already exists in Biobase.
> Bioc-devel at r-project.org mailing list
Program in Computational Biology
Division of Public Health Sciences
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N, M1-B514
P.O. Box 19024
Seattle, WA 98109-1024
E-mail: hpages at fhcrc.org
Phone: (206) 667-5791
Fax: (206) 667-1319
More information about the Bioc-devel