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

Description Usage Arguments Value Author(s)

View source: R/Utility_functions.R

Description

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

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


thomas-fung/izipr documentation built on Dec. 23, 2021, 9:57 a.m.