expr2latex: Convert Expression to LaTeX

Description Usage Arguments Details Value Author(s) References See Also

Description

Convert an R expression to a LaTeX mathematical equation.

Usage

1
2
3

Arguments

...

Unquoted expressions

expr

Language objects, atomic values, or lists. If expr is a list, it will recursively call expr2latex_ on each element.

Details

Most of the code from this function adapted from the example in R for Data Science, "Domain Specific Languages".

The symbol function uses the \Pisymbol command from the pifont package. You will need to load it in in any code that uses these commands.

Value

A character vector with the LaTeX version of the expression.

Author(s)

Hadley Wickham

References

http://adv-r.had.co.nz/dsl.html

See Also

plotmath


jrnold/textools documentation built on May 20, 2019, 2:06 a.m.