scat: Print formatted messages

Description Usage Arguments Details Value Author(s) Examples

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

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

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

futile.logger documentation built on May 2, 2019, 8:53 a.m.