Implements a minimal 'LaTeX' parser that translates mathematical formulas into R code strings. Supports arithmetic operators, implicit multiplication, fractions, Greek letters, common mathematical functions, and statistical notation for means, medians, and rolling sums. Input from visual formula editors such as 'MathQuill' is normalized automatically, and the resulting string can be evaluated with parse() and eval(), or converted into an R function with latex2fun(). The implementation follows the tree-walking interpreter design of Nystrom (2021) <https://craftinginterpreters.com/>.
Package details |
|
|---|---|
| Author | Rodrigo Borges [aut, cre], Tomas Capretto [aut, ctb] |
| Maintainer | Rodrigo Borges <rodrigo@borges.net.br> |
| License | MIT + file LICENSE |
| Version | 0.3.0 |
| URL | https://github.com/rodrigoesborges/latexr |
| Package repository | View on CRAN |
| Installation |
Install the latest version of this package by entering the following in R:
|
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.