R/text.R
break_word.Rd
Break a character string into two lines based on a specified maximum length
break_word(x, max.len)
x | character string |
---|---|
max.len | maximum length of the first line |
break_word("a super package", 3) #> [1] "a \n super package" break_word("a super package", 9) #> [1] "a super \n package"