Learn R Programming

papaja (version 0.1.0.9479)

escape_latex: Escape symbols for LaTex output

Description

This function is a copy of the non-exported function escape_latex from the knitr package. This function is not exported.

Usage

escape_latex(x, newlines = FALSE, spaces = FALSE)

Arguments

x
Character.
newlines
Logical. Determines if \n are escaped.
spaces
Logical. Determines if multiple spaces are escaped.

Examples

Run this code
## Not run: 
# in_paren <- TRUE # Taken from printnum()
# validate(in_paren, check_class = "logical", check_length = 1)
# validate(in_paren, check_class = "numeric", check_length = 1)
# ## End(Not run)

Run the code above in your browser using DataLab