[Rd] improved error message when existing implicit S4 generic is not imported?

From: Martin Morgan <mtmorgan_at_fhcrc.org>
Date: Sat, 25 Feb 2012 22:39:49 -0800


pkgA's NAMESPACE has

   importFrom(graphics, plot)
   exportClasses("A")
   exportMethods("plot")

R/foo.R has

   setClass("A")
   setMethod("plot", "A", function(x, y, ...) {})

During R CMD INSTALL pkgA_1.0.tar.gz we are told

pkgB has in its DESCRIPTION

   Depends; pkgA

with NAMESPACE

   importFrom(graphics, plot)
   exportClasses("B")
   exportMethods("plot")

R/bar.R has

   setClass("B")
   setMethod("plot", "B", function(x, y, ...) {})

During R CMD INSTALL pkgB_1.0.tar.gz we are told

i.e., no implicit generic created (because graphics::plot already has an implicit generic created, when the pkgA dependency was attached?). and also

which doesn't seem accurate, rather "'pkgB' does not import S4 implicit generic for 'plot' created by 'pkgA'"

 > sessionInfo()
R Under development (unstable) (2012-02-25 r58492) Platform: x86_64-unknown-linux-gnu (64-bit)

Martin

-- 
Computational Biology
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N. PO Box 19024 Seattle, WA 98109

Location: M1-B861
Telephone: 206 667-2793

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Sun 26 Feb 2012 - 06:53:14 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

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 27 Feb 2012 - 10:10:22 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