"cat"
except that the strings can include
"gsubfn"
-like string interpolation.cati(..., file = "", sep = " ", fill = FALSE, labels = NULL, append = FALSE, env = parent.frame(), pattern, backref, end = "")
cati0(..., sep = "")
cat0(..., sep = "")
paste0(..., sep = "")
'""'
(the default), "cat"
prints to the standard
output connection, the console unless redirected by "'sink'"
."FALSE"
(default), only newlines
created explicitly by "\n"
are printed. Otherwise, the
output is broken into "file"
is the
name of file
(and not a connection or '"|cmd"'
). If "TRUE"
output
will be
appended to "file"
; otherwise, it "gsubfn"
. Normally not used."gsubfn"
. Normally not used."gsubfn"
. Normally not used."sep"
is
not used to separate "end"
."cati"
is similar to "cat"
except that "gsub"
-style
string interpolcation can be used in the arguments.
"cat0"
, "cati0"
and "paste0"
are similar to
the corresponding functions without the "0"
except that the default value for "sep"
is the empty string.gsubfn
.cati("pi = $pi, pi rounded = `round(pi,2)`\n")
# no comma after 3 as newline specified via end=
cati(1, 2, 3, sep = ",", end = "\n")
Run the code above in your browser using DataLab