hushWarning: Selectively muffle warnings based on output

Description Usage Arguments Value Examples

View source: R/utilty.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
CellaRepertorium:::hushWarning(warning('Beware the rabbit'), 'rabbit')
CellaRepertorium:::hushWarning(warning('Beware the rabbit'), 'hedgehog')

CellaRepertorium documentation built on Nov. 8, 2020, 7:48 p.m.