Suppress a warning that matches .regexpr

suppressSpecificWarning(.expr, .regexpr)

Arguments

.expr

Expression to run

.regexpr

Regex to match against any generated warning. Warning will be suppressed if this matches the warning message.