warningf: Send Warning with String Interpolated Messages

View source: R/utils.R

warningfR Documentation

Send Warning with String Interpolated Messages

Description

Combines warning with sprintf thus allowing string interpolated warnings.

Usage

warningf(s, ...)

Arguments

s

a character vector of format strings

...

values to be interpolated

Examples

## Not run: 
warningf("%.3f is not larger than %d and/or smaller than %d", pi, 10, 40)

## End(Not run)

rapportools documentation built on March 22, 2022, 1:06 a.m.