escape_latex: Escape problematic characters to allow compilation in LaTeX
Description
Copied from knitr
for internal use because it is unexported and CRAN
rejects :::
Usage
escape_latex(x, newlines = FALSE, spaces = FALSE)
Arguments
- x
a character string to escape
- newlines
boolean
- spaces
boolean