hushWarning {CellaRepertorium} | 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
CellaRepertorium:::hushWarning(warning('Beware the rabbit'), 'rabbit') CellaRepertorium:::hushWarning(warning('Beware the rabbit'), 'hedgehog')