splat
stands for ‘split cat’.
The command splat(…)
is like cat(paste(…))
except that the output will be split into lines that can be
printed within the current text margin
specified by getOption("width")
.
The arguments …
are first combined into a character vector
using paste
. Then they are split into words
separated by white space. A newline will be inserted whenever the next
word does not fit in the available text area.
(Words will not be broken, so the text margin could be exceeded
if any word is longer than getOption("width")
).
If any argument is a vector, each
element of the vector is treated as a separate line.
Existing newline characters in …
are also respected.