A simple wrapper for cat(sprintf(...)).
cat(sprintf(...))
catf(..., file = "", append = FALSE, newline = TRUE)
...
[any] See sprintf.
sprintf
file
[character(1)] See cat. Default is “”.
character(1)
cat
append
[logical(1)] See cat. Default is FALSE.
logical(1)
FALSE
newline
[logical(1)] Append newline at the end? Default is TRUE.
TRUE
Nothing.
msg = "a message." catf("This is %s", msg)