isGeneric(f, where = topenv(parent.frame()), fdef = NULL, getName = FALSE)
| f | character string, name of the function. |
| where | package or environment to search for the generic function. |
| fdef | This argument is unimplemented, and a warning is generated if it is given. |
| getName | This argument is unimplemented, and a warning is generated if it is given. |
setGeneric("setG", function(x)standardGeneric("setG"))
setMethod("setG", "numeric", function(x) x^2)
isGeneric("setG") # TRUE
isGeneric("show") # TRUE
isGeneric("no-such-function") # FALSE