Skip to content
Prev 6399 / 21312 Next

[Bioc-devel] NAMESPACE question

On 10/07/2014 08:15 AM, Robert Castelo wrote:
Is there a reproducible example? I see in your code there are several places 
where you require() or library() various packages. I think one of these 
Depends: on GenomicRanges, and the messages you see are the effect of moving 
GenomicRanges from 'loaded' to 'attached'. You can see the effect with

   library(qpgraph)
   sessionInfo()           ## GenomicRanges loaded but not attached
   library(GenomicRanges)  ## information about the package being attached

Probably in your code you do not actually want to require() ad hoc packages and 
influence the user search path (and implicitly rely on search path order for 
correct functionality), but rather to requireNamespace("foo"); foo::fun(...) (or 
possibly loadNamespace()).

Complicated!

Martin