This function is a copy of the non-exported function escape_latex()
from the knitr package.
This function is not exported.
escape_latex(x, newlines = FALSE, spaces = FALSE)
Character.
Logical. Determines if \n
are escaped.
Logical. Determines if multiple spaces are escaped.