is.error | R Documentation |
Checks if an object is of class “try-error” or “error”.
is.error(x)
x |
[any] |
[logical(1)
].
x = try(stop("foo")) print(is.error(x)) x = 1 print(is.error(x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.