[Bioc-devel] Avoiding pkgs in Depends
Benilton Carvalho
beniltoncarvalho at gmail.com
Wed Mar 21 21:12:56 CET 2012
Hi,
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
examples?)
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.
Thanks,
benilton
More information about the Bioc-devel
mailing list