From saveez at hotmail.com  Fri Apr 22 20:31:23 2005
From: saveez at hotmail.com (Ali -)
Date: Fri Apr 22 20:31:32 2005
Subject: [Rd] Passing arguments to standardGeneric
Message-ID: <BAY17-F363816633F320D152724A2D12D0@phx.gbl>

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))
+ }
>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!


[Rd] Passing arguments to standardGeneric
Ali -