Learn R Programming

PopED (version 0.7.0)

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

Description

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

Usage

tryCatch.W.E(expr)

Value

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

Arguments

expr

an R expression to evaluate

Author

Martin Maechler, The R Core Team