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.Rd
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 ifobject
is a vector. IfTRUE
andobject
is a vector, the first-level members ofobject
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.