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.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.4-emscripten)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'))

Peer review:

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

On CRAN:

57 exports 2 stars 1.96 score 8 dependencies 33 scripts 216 downloads

Last updated 4 months agofrom:aef25c9d3f. Checks:OK: 3 ERROR: 4. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 18 2024
R-4.5-winERRORSep 18 2024
R-4.5-linuxERRORSep 18 2024
R-4.4-winERRORSep 18 2024
R-4.4-macOKSep 18 2024
R-4.3-winERRORSep 18 2024
R-4.3-macOKSep 18 2024

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 Sep 18 2024.

Last update: 2024-04-29
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