dummy <- function(str){
+ setGeneric(str, function(object, ...) standardGeneric(str)) + }
dummy("foo")[1] "foo"
Warning message:
The body of the generic function for "foo" calls standardGeneric to dispatch on a different name ("str")! in: .recursiveCallTest(body, fname)
I don't know how this call test works but the test shouldn't fail in this case!
______________________________________________ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel