search for: recursivecalltest

Displaying 1 result from an estimated 1 matches for "recursivecalltest".

2004 Jun 19
0
setGeneric / standardGeneric when args are not "literals" - corrected
...(full message) reads like this: Hi, This works > setGeneric("clear", function(obj) standardGeneric("clear")) [1] "clear" but this doesn't. Why? > funName <- "clear" > setGeneric(funName, function(obj) standardGeneric(funName)) Error in .recursiveCallTest(body, fname) : (converted from warning) The body of the generic function for "clear" calls standardGeneric to dispatch on a different name ("funName")! This is R-1.8.1 on RH-7.3 I came across it while trying to write a helper function that would "safely" creat...