Skip to contents

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