withWE: Evaluate expression and capture all warnings and errors if...

Description Usage Arguments Value Examples

View source: R/withWE.R

Description

Not exported. Strictly internal

Usage

1
withWE(expr)

Arguments

expr

The expression to be evaluated.

Value

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
foo <- function(){
  warning("oops")
  1}

foo <- function(){
  warning("oops")
  warning("again oops")
  1}

foo <- function(){
  warning("oops")
  log("a")}

rmelting documentation built on Nov. 8, 2020, 5:19 p.m.