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

Description Usage Arguments

View source: R/s3.R

Description

is_s3_generic compares name to .knownS3Generics and .S3PrimitiveGenerics, then looks at the function body to see if it 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

1
2
3

Arguments

name

Name of function.

env

Base environment in which to look for function defintion.


johnmchambers/roxygen2 documentation built on May 19, 2019, 5:16 p.m.