mathml(
term = quote((a + b)^2L == a^2L + 2L * a * b + b^2L),
flags = NULL,
env = globalenv()
)
Value
A string with the MathML representation of term.
Arguments
term
an R call or symbol/number. This function translates term into a
MathML string.
flags
(default NULL)
list of flags that control the translation. This includes "context" settings
such as error("ignore"), or a default number of decimal places for numeric
output.
env
(default globalenv())
The R environment in which r_eval is being executed.
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.