R/helper_fxns.R
tryCatch.W.E.Rd
Catch and save both errors and warnings, and in the case of a warning, also keep the computed result.
tryCatch.W.E(expr)
an R expression to evaluate
a list with 'value' and 'warning', where 'value' may be an error caught.
Copied from https://svn.r-project.org/R/trunk/src/library/base/demo/error.catching.R
Martin Maechler; Copyright (C) 2010-2023 The R Core Team