hushWarning {MAST} | R Documentation |
Selectively muffle warnings based on output
hushWarning(expr, regexp)
expr |
an expression |
regexp |
a regexp to be matched (with str_detect) |
the result of expr
hushWarning(warning('Beware the rabbit'), 'rabbit') hushWarning(warning('Beware the rabbit'), 'hedgehog')