maybe_s3_method: Predicate to pre-filter possible S3 methods

Description Usage Arguments Value

View source: R/s3.R

Description

An S3 method of a generic must start with the name of the generic, then have a dot, and some extra characters. It must also call 'UseMethod', but that is not checked here, but elsewhere.

Usage

1
maybe_s3_method(generic, method)

Arguments

generic

Name of the S3 generic.

method

Name of the alleged S3 method.

Value

Logical scalar.


MangoTheCat/functionMap documentation built on May 7, 2019, 2:10 p.m.