CollectWarnings: Collect warnings and just warn once.

View source: R/warnings.R

CollectWarningsR Documentation

Collect warnings and just warn once.

Description

Collect warnings and just warn once.

Usage

CollectWarnings(expr, return.list = FALSE)

Arguments

expr

R expression

return.list

When TRUE return a list with list(object,warnings) instead of issuing the warnings. Otherwise, when FALSE issue the warnings and return the object.

Value

The value of the expression or a list with the value of the expression and a list of warning messages


Displayr/flipU documentation built on March 2, 2024, 4:35 a.m.