Description Usage Arguments Value Examples
strips newlines and blocks of 4 spaces from strings. I use this when I want to have newlines and 4-space tabs in strings *in my script*, but would also like to print them to the console in a sensible way.
1 | makepretty(x)
|
x |
string (i.e., character vector of length 1) |
string that is the same as x
but with all newline ('\n'
) and 4-space blocks
(' '
) replaced with the empty string.
1 2 3 4 5 6 7 | ## Not run:
msg = 'Hello, I will type a message to you
like this!'
message(msg)
message(makepretty(msg))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.