checkClass: Check if class is in a set of accepted classes

View source: R/04-fruitsClass.R

checkClassR Documentation

Check if class is in a set of accepted classes

Description

Check if class is in a set of accepted classes

Usage

checkClass(x, classesExpected = "list", argName = NULL)

Arguments

x

any object

classesExpected

character: vector with accepted classes

argName

character: name of argument displayed in error message

Examples

ReSources:::checkClass(c(1, 2, 3), c("numeric", "integer"))
## Not run: 
ReSources:::checkClass("This is not a list", argName = "x")

## End(Not run)

Pandora-IsoMemo/resources documentation built on Nov. 21, 2024, 3:56 a.m.