Re: [Rd] DESCRIPTION file and Rd examples

From: Thomas Lumley <tlumley_at_uw.edu>
Date: Mon, 18 Apr 2011 16:55:11 +1200

On Mon, Apr 18, 2011 at 2:00 PM, Dario Strbenac <D.Strbenac_at_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_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Mon 18 Apr 2011 - 04:59:02 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 18 Apr 2011 - 05:01:10 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive