Description Usage Arguments Value Examples
View source: R/equation2latex.R
This function converts unquoted R expressions into LaTeX
code. It uses extract values to substitute for each symbol
in the expression its value in env. Then it deparses the
expression and inserts LaTeX code in the appropriate places,
including handling matrices and vectors.
1  | equation2latex(eqn, env, emBiggen = TRUE)
 | 
eqn | 
 An R expression, optionally containing matrices.  | 
env | 
 Environment in which to evaluate the expression.
Defaults to the caller environment of   | 
emBiggen | 
 Logical determining whether to apply the LaTeX Bigg modifier to parentheses in the output, which looks better with matrices. "Embiggens" is a perfectly cromulent word. Defaults to TRUE.  | 
LaTeX code for rendering the expression, as a length-one character vector.
1 2 3 4 5 6 7 8  | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.