isGenericS3 {R.methodsS3} | R Documentation |
Checks if a function is a S3/UseMethod generic function.
## Default S3 method: isGenericS3(fcn, ...)
fcn |
A function or a character string. |
... |
Not used. |
A function is considered to be a generic S3/UseMethod function if its
body, that is the source code, contains the regular pattern
"UseMethod[(]"
.
Returns TRUE
if a generic S3/UseMethod function, otherwise FALSE
.
Henrik Bengtsson (http://www.braju.com/R/)