withConditions: A function to capture warnings and errors for HTML output

Description Usage Arguments Details Value Author(s)

View source: R/withConditions.R

Description

Evaluates an R expression using withCallingHandlers. If any warnings are returned, they are attached to the value of the expression as attributes.

Usage

1

Arguments

expr

Any R expression.

Details

The function unique is used to remove duplicate warnings so that only one copy of each warning is printed.

Value

The evaluated expression, with any warnings attached to the value as attributes.

Author(s)

Bill Altermatt


DeducerRichOutput documentation built on May 2, 2019, 4:53 p.m.