hushWarning: Selectively muffle warnings based on output

View source: R/utility.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

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

amcdavid/Genesee documentation built on April 14, 2022, 5:16 a.m.