Learn R Programming

box (version 1.2.0)

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)

Value

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

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.