Learn R Programming

BBmisc (version 1.13)

messagef: Wrapper for message and sprintf.

Description

A simple wrapper for message(sprintf(...)).

Usage

messagef(..., .newline = TRUE)

Value

Nothing.

Arguments

...

[any]
See sprintf.

.newline

[logical(1)]
Add a newline to the message. Default is TRUE.

Examples

Run this code
msg = "a message"
warningf("this is %s", msg)

Run the code above in your browser using DataLab