tryCatch.W.E {utilitiesR}R Documentation

tryCatch both warnings 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)

Arguments

expr

the expression to evaluate

Value

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

Author(s)

Martin Maechler

See Also

Other debug: printf, stopf, verbosePrint, verbosePrintf, warningf


[Package utilitiesR version 1.7 Index]