View source: R/text_formatting.R
escape_dollar | R Documentation |
Escape single backslashes in front of dollar signs (for LaTeX)
escape_dollar(txt)
txt |
A character string |
If a dollar sign in a character string is preceded by a single backslash, escape that to make it a double-backslash. Ignore cases where the dollar sign is already preceded by multiple backslashes.
A character string with escaped backslashes in front of dollar sings.
escape_dollar("$x^2$")
escape_dollar("\\$1000.00")
escape_dollar("$\\\\$1000.00")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.