Learn R Programming

rapportools (version 1.1)

messagef: Send Message with String Interpolated Messages

Description

Combines warning with sprintf thus allowing string interpolated diagnostic messages.

Usage

messagef(s, ...)

Arguments

s

a character vector of format strings

...

values to be interpolated

Examples

Run this code
# NOT RUN {
messagef("%.3f is not larger than %d and/or smaller than %d", pi, 10, 40)
# }

Run the code above in your browser using DataLab