tryCatch both warnings (with value) and errors
Catch *and* save both errors and warnings, and in the case of a warning, also keep the computed result.
tryCatch.W.E(expr)
expr |
an R expression to evaluate |
a list with 'value' and 'warning', where 'value' may be an error caught.
Martin Maechler; Copyright (C) 2010-2012 The R Core Team
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.