hushWarning: Selectively muffle warnings based on output

Description Usage Arguments Value Examples

View source: R/helper-methods.R

Description

Selectively muffle warnings based on output

Usage

1

Arguments

expr

an expression

regexp

a regexp to be matched (with str_detect)

Value

the result of expr

Examples

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

MAST documentation built on Nov. 8, 2020, 8:19 p.m.