scat {futile.logger} | R Documentation |
Print formatted messages
Description
A replacement for cat
that has built-in sprintf formatting
Usage
scat(format, ..., use.newline = TRUE)
Arguments
format |
A format string passed to sprintf |
use.newline |
Whether to append a new line at the end |
... |
Arguments to pass to sprintf for dereferencing |
Details
Like cat
but you can use format strings.
Value
A formatted string printed to the console
Author(s)
Brian Lee Yung Rowe
Examples
apply(array(2:5),1, function(x) scat('This has happened %s times', x) )
[Package futile.logger version 1.4.3 Index]