str_slice | R Documentation |
Slice/split a string into multiple lines by the desired length of the line.
str_slice(x, n = 80L)
str_slice_by_word(x, n = 80L)
x |
A character vector |
n |
Integer, the length of the line split |
A character
vector
if (requireNamespace("stringi")) {
x <- stringi::stri_rand_lipsum(1)
str_slice(x)
str_slice_by_word(x, n = 50L)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.