Description Usage Arguments Value Examples
View source: R/console_output.R
Wrapping text needs to be done separately from actually printing it with
stop
or warning
or message
. This is because these functions typically
also print some information about the environment where they were called.
1 |
... |
Vectors to be coerced to Character. |
The text in ...
will be collapsed and wrapped.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Not run:
wrapped <-
wrap_text(
"Lorem ipsum dolor sit amet, ornare justo condimentum",
"et sit lorem! Himenaeos, vel et sodales sit.",
"Eu nulla. Magna ullamcorper nascetur placerat platea.\n\n",
"Eleifend semper velit sed aliquam, ut ligula non commodo.")
cat(wrapped)
#> Lorem ipsum dolor sit amet, ornare justo condimentum et sit lorem!
#> Himenaeos, vel et sodales sit. Eu nulla. Magna ullamcorper
#> nascetur placerat platea.
#>
#> Eleifend semper velit sed aliquam, ut ligula non commodo.
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.