View source: R/catching-n-plans.R
give_newline
will append a line return ('\n') to the end of a string if
it doesn't already end with one. There is also the option to remove any trailing whitespace before doing so.
1 | give_newline(s, trim = FALSE)
|
s |
A string. |
trim |
Indicates whether to remove trailing whitespace before adding newline. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.