generic_implementations: Retrieve generic function implementations

View source: R/extension-utils.R

generic_implementationsR Documentation

Retrieve generic function implementations

Description

Obtains a list of classes for which the supplied generic function has an implementation.

Usage

generic_implementations(generic, remove_default = TRUE)

Arguments

generic

name of the generic function.

remove_default

whether to keep the default generic implementation in the result.

Value

A vector with class names for which argument 'generic' has an implementation.

Note

Removes the default generic implementation

See Also

Other developer functions: crossref_description(), load_packages(), update_settings(), valid_pkgname()

Examples

#get a list of classes which have an implementation for graphics::plot
impls = generic_implementations('plot')


hgutils documentation built on March 31, 2022, 5:06 p.m.