Description Usage Arguments Examples
View source: R/set_whitespace.R
When printing whitespace, some applications will
ignore or remove the whitespace, for example it will
simplify " "
to " "
. In this instance, it will be
useful to replace the double whitespace with a space
preceding by "symbol"
(or the other way round conditionally).
1 | set_whitespace(x, symbol = " ")
|
x |
vector of character strings to set the whitespace for |
symbol |
character string to be used as the whitespace.
In general, for HTML output (default), use |
1 2 | x <- c(" a", "b ", " c ")
set_whitespace(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.