Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

isGenericS4

Checks if a function is a S4 generic function


Description

Checks if a function is a S4 generic function.

Usage

## Default S3 method:
isGenericS4(fcn, envir=parent.frame(), ...)

Arguments

fcn

A function or a character string.

...

Not used.

Details

A function is considered to be a generic S4 function if its body, that is the source code, contains the regular pattern "standardGeneric".

Value

Returns TRUE if a generic S4 function, otherwise FALSE.

Author(s)

Henrik Bengtsson


R.methodsS3

S3 Methods Simplified

v1.8.1
LGPL (>= 2.1)
Authors
Henrik Bengtsson [aut, cre, cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.