Learn R Programming

toscutil (version 2.8.0)

catfn: Format and Print

Description

Same as cat2(sprintf(fmt, ...))

Warning: this function is deprecated and should no longer be used. The function is guaranteed to be available as part of the package until the end of 2023 but might removed at any time after 31.12.2023.

Usage

catfn(
  fmt,
  ...,
  end = "\n",
  file = "",
  sep = " ",
  fill = FALSE,
  labels = NULL,
  append = FALSE
)

Value

No return value, called for side effects

Arguments

fmt

passed on to base::sprintf()

...

passed on to base::sprintf()

end

passed on to cat2()

file

passed on to cat2() (which passes it on to base::cat())

sep

passed on to cat2() (which passes it on to base::cat())

fill

passed on to cat2() (which passes it on to base::cat())

labels

passed on to cat2() (which passes it on to base::cat())

append

passed on to cat2() (which passes it on to base::cat())

Examples

Run this code
catfn("A%dB%sC", 2, "asdf") # prints "A2BasdfC\n"

Run the code above in your browser using DataLab