cat_wrap | R Documentation |
Wrapping console output is essential in Rmarkdown documents because long character vectors do not wrap when printed inside code blocks.
cat_wrap(text, width = 80, element_sep = "\n")
text |
(Character) A vector of text. |
width |
(Integer) The character length of each line. |
element_sep |
(Character) A string to insert between each element of |
Print to console.
Desi Quintans (http://www.desiquintans.com)
vec <- c("This is a very long chunk of text.",
"This is also another quite long chunk of text.")
cat_wrap(vec, width = 25)
#> This is a very long
#> chunk of text.
#>
#> This is also another
#> quite long chunk of
#> text.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.