isGenericS3 {R.oo}R Documentation

Checks if a function is a S3/UseMethod generic function

Description

Checks if a function is a S3/UseMethod generic function.

Usage

## Default S3 method:
isGenericS3(fcn, ...)

Arguments

fcn A function.
... Not used.

Details

A function is considered to be a generic S3/UseMethod function if its body, that is the source code, contains the regular pattern "UseMethod[(]".

Value

Returns TRUE if a generic S3/UseMethod function, otherwise FALSE.

Author(s)

Henrik Bengtsson http://www.braju.com/R/


[Package R.oo version 1.1.0 Index]