suppress_warnings: Selective suppress warnings
Description
Suppress warnings matching particular regular expressions.
Usage
suppress_warnings(.expr, .f)
Value
The warning message as character string, invisibly.
Arguments
- .expr
Code to evaluate
- .f
A regular expression (which will be passed to grepl()
).
Details
See https://stackoverflow.com/questions/16517795/selective-suppresswarnings-that-filters-by-regular-expression