50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


futile.logger (version 1.2.1)

scat: 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

Value

  • A formatted string printed to the console

Details

Like cat but you can use format strings.

Examples

Run this code
apply(array(2:5),1, function(x) scat('This has happened %s times', x) )

Run the code above in your browser using DataLab