search for: isumeif

Displaying 2 results from an estimated 2 matches for "isumeif".

Did you mean: isume
2004 Oct 28
1
Internal function isUME() in findGeneric() is wrong (PR#7320)
...he utils namespace contains this internal function: isUME <- function(e) { if (is.call(e) && (is.name(e[[1]]) || is.character(e[[1]]))) { switch(as.character(e[[1]]), UseMethod = as.character(e[[2]]), "{" = isUMEbrace(e), "if" = isUMEif(e), "") } else "" } This fails if the generic called UseMethod() without an argument, which is perfectly legal. Changing it to this seems to work: isUME <- function(e) { if(is.call(e) &&(is.name(e[[1]]) || is.character(e[[1]]))) { sw...
2004 Oct 29
0
(PR#7320) Internal function isUME() in findGeneric() is
...> function: > >> > >> isUME <- function(e) { > >> if (is.call(e) && (is.name(e[[1]]) || is.character(e[[1]]))) { > >> switch(as.character(e[[1]]), UseMethod = as.character(e[[2]]), > >> "{" = isUMEbrace(e), "if" = isUMEif(e), "") > >> } > >> else "" > >> } > >> > >> This fails if the generic called UseMethod() without an argument, which is > >> perfectly legal. Changing it to this seems to work: > >> > >> isUME &lt...