[Rd] Passing arguments to standardGeneric

Ali - saveez at hotmail.com
Fri Apr 22 20:31:23 CEST 2005

This could be quite trivial (or could be not): when passing a character 
string argument to standardGeneric, the argument is not passed properly:

>dummy <- function(str){
+ setGeneric(str, function(object, ...) standardGeneric(str))
+ }
[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 

More information about the R-devel mailing list