is.generic: (Internal) Is a function generic?

View source: R/utils.r

is.s3.genericR Documentation

(Internal) Is a function generic?

Description

This function roughly test a function is generic.

Usage

is.s3.generic(fun.name)

is.s4.generic(fun.name, package = "")

is.generic(fun.name, package = "")

Arguments

fun.name

a character string naming the function.

package

a character string of package name.

Value

returns TRUE if fun.name is generic function and FALSE otherwise.

Functions

  • is.s3.generic(): (Internal) function for S3 generic function.

  • is.s4.generic(): (Internal) function for S4 generic function.

Examples

model.adapter:::is.s3.generic("plot")
model.adapter:::is.s3.generic("glm")
model.adapter:::is.s4.generic("plot")
model.adapter:::is.s4.generic("lmer")
model.adapter:::is.generic("plot")
model.adapter:::is.generic("glm")

Marchen/model.adapter documentation built on July 3, 2023, 11:07 a.m.