Hi, I realize the answer is very likely in the section Generic functions and methods (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
Add '...' to the argument list of your methods. -G> -----Original Message----- > From: Matt Pocernich [mailto:pocernic at rap.ucar.edu] > Sent: Friday, December 19, 2003 12:18 PM > To: r-help at stat.math.ethz.ch > Subject: generic/method consistency > > > Hi, > > I realize the answer is very likely in the section Generic > functions and > methods (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 > >LEGAL NOTICE\ Unless expressly stated otherwise, this messag...{{dropped}}
On Fri, 19 Dec 2003, Matt Pocernich wrote:> Hi, > > I realize the answer is very likely in the section Generic functions and > methodsYes, 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 >