withWE {rmelting}R Documentation

Evaluate expression and capture all warnings and errors if any along with results

Description

Not exported. Strictly internal

Usage

withWE(expr)

Arguments

expr

The expression to be evaluated.

Value

Examples

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

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

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


[Package rmelting version 1.8.0 Index]