Does the input belong to or inherit all of these classes?

isAll(x, classes, .xname = getNameInParent(x))

Arguments

x

Object.

classes

character. Object classes.

.xname

Not intended to be used directly.

Value

TRUE on success; FALSE on failure, with cause attribute set.

Examples

x <- 1L ## TRUE ==== isAll(x, classes = c("integer", "numeric"))
#> [1] TRUE
## FALSE ==== isAll(x, classes = c("integer", "NULL"))
#> [1] FALSE #> Cause of failure: #> x is not all: integer, NULL