isS3stdGeneric
Identify S3 Generic Function

### Description

Tell if a function is not much more than a call to UseMethod().

### Usage

    isS3stdGeneric(f)

### Arguments

f | a function or a character string naming a function on the search list.

Value

- returns c(genericName=TRUE) if f is a function whose body is UseMethod("genericName",...) (perhaps wrapped in braces).
- returns FALSE if f is not such a function.
- returns an error if f is not a function.

See Also
UseMethod.
Examples

    isS3stdGeneric(function(x, y) { UseMethod("myGeneric", y) })
    isS3stdGeneric(stats::model.frame)
    isS3stdGeneric(function(x) x + 1)

Package utils version 6.1.5-18
Package Index