tryCatch.W.E: tryCatch both warnings (with value) and errors

Description Usage Arguments Value Author(s) References

Description

A tryCatch with warnings taken from the R error.catching demo.

Usage

1

Arguments

expr

an R expression to evaluate

Value

a list with 'value' and 'warning', where 'value' may be an error caught.

Author(s)

Martin Maechler; Copyright (C) 2010-2012 The R Core Team

References

demo(error.catching)

Catch *and* save both errors and warnings, and in the case of a warning, also keep the computed result.


joshmarsh/TSPatternQuery documentation built on May 19, 2019, 8:53 p.m.