Learn R Programming

roxygen2 (version 3.1.0)

is_s3_generic: Determine if a function is an S3 generic or S3 method.

Description

is_s3_generic compares name to .knownS3Generics and .S3PrimitiveGenerics, then uses findGlobals to see if the functionion calls UseMethod. is_s3_method builds names of all possible generics for that function and then checks if any of them actually is a generic.

Usage

is_s3_generic(name, env = parent.frame())

Arguments

name
name of function.
env
environment to search in.