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.


ranghetti/sen2r documentation built on March 27, 2024, 10:30 p.m.