[R] generic/method consistency

Achim Zeileis zeileis at ci.tuwien.ac.at
Fri Dec 19 18:35:24 CET 2003


On Fri, 19 Dec 2003, Matt Pocernich wrote:

> Hi,
> 
> I realize the answer is very likely in the section Generic functions and
> methods 

Yes, and it is even set in italics (on the first page of section 6, page 
75) so that it is easy to find. It says:

  A method must have all the arguments of the generic, inlcuding the
  ... if the generic does.

hth,
Z

> (or Adding new generics), but I'm not clear what to do with the
> following.  Running R CMD check, I get the following warnings for my
> generic functions.  Does this mean I need the argument
> 
> * checking generic/method consistency ... WARNING
> 
> leps:
>   function(x, ...)
> leps.default:
>   function(x, pred, titl, plot)
> 
> reliability.plot:
>   function(x, ...)
> reliability.plot.default:
>   function(x, obar.i, prob.y, titl, mod.names)
> 
> summary:
>   function(object, ...)
> summary.prob.bin:
>   function(object)
> 
> 
> 
> Matt Pocernich
> NCAR - Research Applications Program
> 303-497-8312
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>




More information about the R-help mailing list