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