say {omnibus} | R Documentation |
Nicer version of print()
or cat()
function
Description
This function is a nicer version of print()
or cat()
, especially when used inline for functions because it displays immediately and pastes all strings together. It also does some rudimentary but optional word wrapping.
Usage
say(
...,
pre = 0,
post = 1,
breaks = NULL,
wiggle = 10,
preBreak = 1,
level = NULL,
deco = "#"
)
Arguments
... |
Character strings to print |
pre |
Integer >= 0. Number of blank lines to print before strings |
post |
Integer >= 0. Number of blank lines to print after strings |
breaks |
Either |
wiggle |
Integer >- 0. Allows line to overrun |
preBreak |
If wrapping long lines indicates how subsequent lines are indented. NULL causes lines to be printed starting at column 1 on the display device. A positive integer inserts |
level |
Integer or |
deco |
Character. Character to decorate text with if |
Value
Nothing (side effect is output on the display device).
Examples
say('The quick brown fox ', 'jumps over the lazy ', 'Susan.')
say('The quick brown fox ', 'jumps over the lazy ', 'Susan.', breaks=10)
say('The quick brown fox ', 'jumps over the lazy ', 'Susan.', level=1)
say('The quick brown fox ', 'jumps over the lazy ', 'Susan.', level=2)
say('The quick brown fox ', 'jumps over the lazy ', 'Susan.', level=3)