Like suppressWarnings
, but instead of suppressing all warnings this only suppresses
warnings if they match the given pattern.
suppressSpecificWarnings(expr, regularExpr, fixed = FALSE)
The result of evaluating expr.
The expression/code to evaluate, can be a block of code inside curly braces.
Only warnings matching this regular expression are suppressed.
Match the literal string given by regularExpr instead of interpreting it
as a regular expression. Passed to grepl
.
Pascal Sauer