hasS3method: Check available support for S3 method

View source: R/utils.R

hasS3methodR Documentation

Check available support for S3 method

Description

Evaluates whether or not there is support for a given S3 method for specific objects.

Usage

hasS3method(method, classes)

Arguments

method

character, name of the method (e.g., "is_continuous", "print", ...)

classes

character vector of length > 0, classes to check.

Value

Returns TRUE if the method exists for one of the given classes, else FALSE.


distributions3 documentation built on Nov. 27, 2026, 5:07 p.m.