hushWarning {MAST} | R 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

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

[Package MAST version 1.12.0 Index]