Return the error message of a try-error object or if object is a vector and FLAGrecursive is TRUE, return a concatenated character string of the try-error members in the object.

Return the error message of a try-error object or if object is a vector and FLAGrecursive is TRUE, return a concatenated character string of the try-error members in the object.

getErrorMessage(object, FLAGrecursive = TRUE)

Arguments

object

an R object.

FLAGrecursive

logical (default TRUE) relevant only if object is a vector. If TRUE and object is a vector, the first-level members of object are checked for being try-errors and, if yes, their character string representations are concatenated and returned as a character string.

Value

a character string. An empty character string is returned if neither object nor any of its members (if object is a vector) is a try-error.