On Mon, Apr 18, 2011 at 2:00 PM, Dario Strbenac <d.strbe...@garvan.org.au> wrote: > It turns out what I needed was IRanges in the Imports: field. I assumed that > require(GenomicRanges) at the top of my function would, as a result of > loading GenomicRanges, implicitly already know about all the IRanges classes, > because GenomicRanges itself depends on them.
If GenomicRanges just imports IRanges (rather than using library()/require()) then the IRanges functions won't be exported to your package. This is a Good Thing -- you only get the function redefinitions you ask for, rather than everything in the dependency tree. -thomas -- Thomas Lumley Professor of Biostatistics University of Auckland ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel