Combines warning with sprintf thus allowing string interpolated warnings.

warningf(s, ...)

Arguments

s

a character vector of format strings

...

values to be interpolated

Examples

if (FALSE) { # \dontrun{
warningf("%.3f is not larger than %d and/or smaller than %d", pi, 10, 40)
} # }