suppressSpecificWarnings: suppressSpecificWarnings

View source: R/suppressSpecificWarnings.R

suppressSpecificWarningsR Documentation

suppressSpecificWarnings

Description

Like suppressWarnings, but instead of suppressing all warnings this only suppresses warnings if they match the given pattern.

Usage

suppressSpecificWarnings(expr, regularExpr, fixed = FALSE)

Arguments

expr

The expression/code to evaluate, can be a block of code inside curly braces.

regularExpr

Only warnings matching this regular expression are suppressed.

fixed

Match the literal string given by regularExpr instead of interpreting it as a regular expression. Passed to grepl.

Value

The result of evaluating expr.

Author(s)

Pascal Sauer

See Also

suppressWarnings


pik-piam/magclass documentation built on March 25, 2024, 11:07 p.m.