say | R Documentation |
print()
or cat()
functionThis 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.
say(
...,
pre = 0,
post = 1,
breaks = NULL,
wiggle = 10,
preBreak = 1,
level = NULL,
deco = "#"
)
... |
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 |
Nothing (side effect is output on the display device).
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.