Suppress warnings matching particular regular expressions.

suppress_warnings(.expr, .f)

Arguments

.expr

Code to evaluate

.f

A regular expression (which will be passed to grepl()).

Value

The warning message as character string, invisibly.

Details

See https://stackoverflow.com/questions/16517795/selective-suppresswarnings-that-filters-by-regular-expression