suppress_warnings: Selective suppress warnings

View source: R/suppress_warnings.R

suppress_warningsR Documentation

Selective suppress warnings

Description

Suppress warnings matching particular regular expressions.

Usage

suppress_warnings(.expr, .f)

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

Value

The warning message as character string, invisibly.


ggranga/RSPrePro documentation built on April 1, 2024, 12:38 p.m.