generic_implementations: Retrieve generic function implementations

Description Usage Arguments Value Note See Also Examples

View source: R/extension-utils.R

Description

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

Usage

1
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

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

hgutils documentation built on Sept. 7, 2019, 5:10 p.m.