Is the object a 'miraiError'. When execution in a mirai process fails, the error message is returned as a character string of class 'miraiError' and 'errorValue'. To test for all errors, including timeouts etc., is_error_value should be used instead.

is_mirai_error(x)

Arguments

x

an object.

Value

Logical value TRUE if 'x' is of class 'miraiError', FALSE otherwise.

Examples

if (interactive()) {
# Only run examples in interactive R sessions

m <- mirai(stop())
call_mirai(m)
is_mirai_error(m$data)

}