Transform R expression to latex math.

translate_latexmath(expr)

translate_latexmath_(expr)

Arguments

expr,

R expression

Examples

translate_latexmath(pi)
#> <LATEXMATH> \pi
translate_latexmath(alpha)
#> <LATEXMATH> \alpha
# keep the constant as is translate_latexmath("pi")
#> <LATEXMATH> pi
# use translate_latexmath_ for quoted object translate_latexmath_(quote(pi))
#> <LATEXMATH> \pi