scat: Print formatted messages

Description Usage Arguments Details Value Author(s) Examples

View source: R/scat.R

Description

A replacement for cat that has built-in sprintf formatting

Usage

1
scat(format, ..., use.newline = TRUE)

Arguments

format

A format string passed to sprintf

...

Arguments to pass to sprintf for dereferencing

use.newline

Whether to append a new line at the end

Details

Like cat but you can use format strings.

Value

A formatted string printed to the console

Author(s)

Brian Lee Yung Rowe

Examples

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

zatonovo/futile.logger documentation built on Feb. 23, 2022, 10:18 p.m.