hushWarning: Selectively muffle warnings based on output

View source: R/helper-methods.R

hushWarningR Documentation

Selectively muffle warnings based on output

Description

Selectively muffle warnings based on output

Usage

hushWarning(expr, regexp)

Arguments

expr

an expression

regexp

a regexp to be matched (with str_detect)

Value

the result of expr

Examples

hushWarning(warning('Beware the rabbit'), 'rabbit')
hushWarning(warning('Beware the rabbit'), 'hedgehog')

RGLab/MAST documentation built on Sept. 30, 2023, 1:08 p.m.