catf: catf function

View source: R/util.R

catfR Documentation

catf function

Description

This function prints a formatted string with optional prefix and end strings.

Usage

catf(
  ...,
  prefix = .Options$FastRet.catf.prefix,
  end = .Options$FastRet.catf.end
)

Arguments

...

Arguments to be passed to sprintf for string formatting.

prefix

A function returning a string to be used as the prefix. Default is a timestamp.

end

A string to be used as the end of the message. Default is a newline character.

Value

No return value. This function is called for its side effect of printing a message.

Examples

catf("Hello, %s!", "world")
catf("Goodbye", prefix = NULL, end = "!\n")

FastRet documentation built on June 25, 2024, 5:07 p.m.