wrap_text {librarian} | R Documentation |
Produce a nicely-wrapped paragraph for console printing
Description
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.
Usage
wrap_text(...)
Arguments
... |
Vectors to be coerced to Character. |
Value
The text in ...
will be collapsed and wrapped.
Examples
## 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)
[Package librarian version 1.8.1 Index]