Learn R Programming

VizOR (version 0.8-5)

beNiceToLaTeX: Sanitize deparsed R expressions for inclusion in LaTeX documents. Percent signs and ampersands appearing in R expressions must be escaped for inclusion in LaTeX documents.

Description

Sanitize deparsed R expressions for inclusion in LaTeX documents. Percent signs and ampersands appearing in R expressions must be escaped for inclusion in LaTeX documents.

Usage

beNiceToLaTeX(str)

Arguments

str
Typically, a deparsed R expression to be included in, e.g., a figure caption in a LaTeX document.

Value

A string is returned, with LaTeX-unfriendly characters backslash-escaped.