Package: mathml 1.3

mathml: Translate R Expressions to 'MathML' and 'LaTeX'/'MathJax'

Translate R expressions to 'MathML' or 'MathJax'/'LaTeX' so that they can be rendered in R markdown documents and shiny apps. This package depends on R package 'rolog', which requires an installation of the 'SWI'-'Prolog' runtime either from 'swi-prolog.org' or from R package 'rswipl'.

Authors:Matthias Gondan [aut, cre, cph], Irene Alfarone [aut], European Commission [fnd]

mathml_1.3.tar.gz
mathml_1.3.zip(r-4.5)mathml_1.3.zip(r-4.4)mathml_1.3.zip(r-4.3)
mathml_1.3.tgz(r-4.5-any)mathml_1.3.tgz(r-4.4-any)mathml_1.3.tgz(r-4.3-any)
mathml_1.3.tar.gz(r-4.5-noble)mathml_1.3.tar.gz(r-4.4-noble)
mathml_1.3.tgz(r-4.3-emscripten)
mathml.pdf |mathml.html
mathml/json (API)
NEWS

# Install 'mathml' in R:
install.packages('mathml', repos = c('https://mgondan.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/mgondan/mathml/issues

On CRAN:

6.33 score 3 stars 32 scripts 450 downloads 57 exports 8 dependencies

Last updated 2 days agofrom:af745b9375. Checks:8 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKFeb 15 2025
R-4.5-winOKFeb 15 2025
R-4.5-macOKFeb 15 2025
R-4.5-linuxOKFeb 15 2025
R-4.4-winOKFeb 15 2025
R-4.4-macOKFeb 15 2025
R-4.3-winOKFeb 15 2025
R-4.3-macOKFeb 15 2025

Exports:%->%%.%%+-%%<-%%<->%%<=%%<=>%%==%%=>%%=~%%~~%%dbldown%%dblup%%down%%prop%%up%addadd_leftadd_rightboldboxedcalcancelcanonicalcolordenotedfracdotfnamefrachookhyphinlineinsteaditalicmathmathjaxmathmlmathml_preprocmathoutnamenodotomitomit_leftomit_rightoverphantomplainprimeprod_overroofsum_overtildetimesunderunderoverunhook

Dependencies:evaluatehighrknitrRcpprologrswiplxfunyaml

mathml: Translate R expressions to MathML and LaTeX

Rendered frommathml.Rmdusingknitr::rmarkdownon Feb 15 2025.

Last update: 2025-02-01
Started: 2022-04-28

Readme and manuals

Help Manual

Help pageTopics
Right arrow, presented as x -> y%->%
Product x * y, shown as x dot y%.%
Plus Minus, it shows x and calculates x +- y%+-%
Left arrow, presented as x <- y%<-%
Double sided arrow, presented as x <-> y%<->%
Right double arrow, displayed as x => y%<=%
If and only if condition, displayed as x <=> y%<=>%
Equivalence, shown as x == y%==%
Left double arrow, displayed as x <= y%=>%
Congruence, shown as x =~ y%=~%
Approximate equality, shown as x ~~ y%~~%
Down double arrow, displayed as x dArr y%dbldown%
Up double arrow, displayed as x uArr y%dblup%
Down arrow, presented as x downarrow y%down%
Proportional, shown as x o< y%prop%
Up arrow, presented as x up y%up%
addadd
add_leftadd_left
add_rightadd_right
Calligraphic fontcal
Canonicalize an R call: Reorder the function argumentscanonical
Identity functions for different decorationsboxed cancel color decorations hyph over phantom prime roof tilde under underover
denote This is a function that allows the user to insert abbreviations in the formula, explain them and make the needed computationsdenote
Division displayed as large fractiondfrac
Multiplicationdot nodot times
Return function bodyfname
Identity functions for different font stylesbold fontstyles italic plain
Division displayed as fractionfrac
Hook for custom symbolshook unhook
insteadinstead
Adds the class "math" to the object for knitr output via 'mathout()'math
Mathjax outputmathjax
MathML outputmathml
Map R operators to their respective Prolog counterpartsmathml_preproc
MathML or MathJax output, depending on the knitr contextinline mathout
Add a name attribute to an element (most often, an R function)name
omitomit
omit_left This is a function that allows the user to highlight the mistakes, in particular the omissions in the left-hand side of the expressionomit_left
omit_right This is a function that allows the user to highlight the mistakes, in particular the omissions in the right-hand side of the expressionomit_right
product over a range. On the R side, this function just returns the product of the first argument, but allows for decorations.prod_over
sum over a range. On the R side, this function just returns the first argument, but allows for decorations.sum_over