Description Usage Arguments Value Author(s)
In longer simulations, aka computer experiments, you may want to 1) catch all errors and warnings (and continue) 2) store the error or warning messages
Here's a solution (see R-help mailing list, Dec 9, 2010):
Catch *and* save both errors and warnings, and in the case of a warning, also keep the computed result.
1 | try.CATCH(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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.