tryCatch.W.E {utilitiesR} | R Documentation |
Catch *and* save both errors and warnings, and in the case of a warning, also keep the computed result.
tryCatch.W.E(expr)
expr |
the expression to evaluate |
a list with 'value' and 'warning', where 'value' may be an error caught.
Martin Maechler
Other debug: printf
, stopf
,
verbosePrint
, warningf