isTryError {safestats} | R Documentation |
Checks Whether a Vector of Object Inherits from the Class 'try-error'
Description
Checks whether any of the provided objects contains a try error.
Usage
isTryError(...)
Arguments
... |
objects that need testing. |
Value
Returns TRUE
if there's some object that's a try-error, FALSE
when all objects are
not try-errors.
Examples
x <- 1
y <- "a"
z <- try(integrate(exp, -Inf, Inf))
isTryError(x, y)
isTryError(x, y, z)
[Package safestats version 0.8.7 Index]