is.error {BBmisc} | R Documentation |
Is return value of try an exception?
Description
Checks if an object is of class “try-error” or “error”.
Usage
is.error(x)
Arguments
x |
[any] |
Value
[logical(1)
].
Examples
x = try(stop("foo"))
print(is.error(x))
x = 1
print(is.error(x))
[Package BBmisc version 1.13 Index]