mathml
allows rendering R terms in pretty mathematical
equations bridging the gap between computational needs, presentation of
results, and their reproducibility.
Researchers or teachers can already use RMarkdown to conduct analyses
and show results, mathml
smoothes this process and allows
for integrated calculations and output. The package mathml
can help in fact to improve data analyses and statistical reports from
an aesthetical perspective, as well as regarding reproducibility of
research, by allowing also for a better detection of possible mistakes
in R programs.
The package supports both MathML and Latex/MathJax for use in R Markdown documents, presentations and ShinyApp webpages.
This R package is distributed under a BSD-2 simplified license (see the file LICENSE).
Download and install a recent R from https://www.r-project.org/
Download and install a recent RStudio from https://www.rstudio.com/
R> install.packages("mathml")
library(mathml)
term <- quote(a^b + c * (d + 3) - a^2L * (a + d))
mathout(term)
\(a^b + c \cdot (d+3.00) - a^2 \cdot (a+d)\)