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

s3

Internal S3 infrastructure helpers


Description

The following are internal S3 infrastructure helper functions.

Usage

is_S3_user_generic(function_name, envir = parent.frame())

make_S3_methods_known(module)

Arguments

function_name

function name as character string.

envir

the environment this function is invoked from.

module

the module object for which to register S3 methods

Details

is_S3_user_generic checks whether a function given by name is a user-defined generic. A user-defined generic is any function which, at some point, calls UseMethod.

make_S3_methods_known finds and registers S3 methods inside a module.

Value

is_S3_user_generic returns TRUE if the specified function is a user-defined S3 generic, FALSE otherwise.


box

Write Reusable, Composable and Modular R Code

v1.0.2
MIT + file LICENSE
Authors
Konrad Rudolph [aut, cre] (<https://orcid.org/0000-0002-9866-7051>), Michael Schubert [ctb] (<https://orcid.org/0000-0002-6862-5221>)
Initial release

We don't support your browser anymore

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