hard_split | R Documentation |
Each string is split in pieces that have that length (or less for the last part of the string)
hard_split(strings, width = getOption("width", 110) - 3)
strings |
A vector of strings |
width |
The width (length) that each line will have (at most). Default |
I was glad to be able to use the following (idea for) code from a StackOverflow article by akrun.
hard_split(paste(letters,collapse =''),width=10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.