mathjax {mathml} | R Documentation |
Mathjax output
Description
Mathjax output
Usage
mathjax(
term = quote((a + b)^2L == a^2L + 2L * a * b + b^2L),
flags = NULL,
env = globalenv()
)
Arguments
term |
an R call or symbol/number. This function translates term into a LaTeX/MathJax string. |
flags |
(default NULL) list of flags that control the translation |
env |
(default globalenv()) The R environment in which r_eval is being executed (see vignette for details, "Ringing back to R"). |
Details
In some functions, the Prolog code may ring back R, for example, to
find the names of function arguments. For example (see vignette), when
rendering the call integrate(g, lower=0L, upper=Inf)
as Int_0^Inf g(x) dx,
Prolog needs to know that the function g is a function of x. The Prolog rule
then searches for the formalArgs of g in the environment env.
Value
A string with the MathJax representation of term.
See Also
Examples
mathjax(term=quote((a + b)^2L == a^2L + 2L*a*b + b^2L))
[Package mathml version 1.2 Index]