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

View source: R/helper.R

tryCatch.W.ER Documentation

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)

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, The R Core Team


andrewhooker/PopED documentation built on Nov. 23, 2023, 1:37 a.m.