[Bioc-devel] NAMESPACE issue, possibly related to AnnotationDbi

Seth Falcon sfalcon at fhcrc.org
Fri Dec 4 20:34:58 CET 2009


Hi Jelle,

I think I have an explanation for you.  Prior to your change, you had 
AnnotationDbi listed in the 'Imports' field of the DESCRIPTION file for 
your globaltest package.  Listing a package in Imports tells R that 
these packges are dependencies, but does not actually cause these 
packages to be imported into your package's name space.  For that you 
have to add something to NAMESPACE.

The addition you made is fine.  You can also do a wholesale import as:

   import("AnnotationDbi")

And then you should not need the more granular imports.  However, the 
granular imports where you import specific symbols is generally a good 
practice since it avoids unintentional name conflicts.  A change in a 
package you import could introduce a symbol clash, but this will not be 
an issue if you have imported the minimal set of symbols.

Does that help?

+ seth

-- 
Seth Falcon
Program in Computational Biology | Fred Hutchinson Cancer Research Center



More information about the Bioc-devel mailing list