View source: R/add_line_breaks.R
add_line_breaks | R Documentation |
Split long sentences into multiple lines by adding line breaks
add_line_breaks(string, words)
string |
Pass text string here. |
words |
The maximum number of words allowed in the first line |
library(stringr)
library(magrittr)
add_line_breaks("This is a lovely cup of tea",2)
add_line_breaks("This is a lovely cup of tea",3)
add_line_breaks("This is a lovely cup of tea",1)
add_line_breaks("Oh wow. Amazing. I cannot believe that this is actually possible!",4)
paste0("word",1:100, collapse = " ") %>% add_line_breaks(3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.