papaja (version 0.1.0.9842)

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)
# }

Run the code above in your browser using DataLab