Package: latexr 0.3.0
latexr: Translate 'LaTeX' Formulas to R Code
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/>.
Authors:
latexr_0.3.0.tar.gz
latexr_0.3.0.zip(r-4.7-any)latexr_0.3.0.zip(r-4.6-any)latexr_0.3.0.zip(r-4.5-any)
latexr_0.3.0.tgz(r-4.6-any)latexr_0.3.0.tgz(r-4.5-any)
latexr_0.3.0.tar.gz(r-4.7-any)latexr_0.3.0.tar.gz(r-4.6-any)
latexr_0.3.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
latexr/json (API)
| # Install 'latexr' in R: |
| install.packages('latexr', repos = c('https://rodrigoesborges.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/rodrigoesborges/latexr/issues
Last updated from:12db3403e8. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 115 | ||
| source / vignettes | OK | 312 | ||
| linux-release | OK | 122 | ||
| macos-release | OK | 177 | ||
| macos-oldrel | OK | 182 | ||
| windows-devel | OK | 76 | ||
| windows-release | OK | 76 | ||
| windows-oldrel | OK | 110 | ||
| wasm-release | OK | 94 |
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Extract the AST of a LaTeX formula. | latex2ast |
| Construct R function from LaTeX expression. | latex2fun |
| Translate LaTeX formula to R code. | latex2r |
| Normalize Unicode characters to their LaTeX equivalents. | normalize_mathquill |
| Print a Token object. | print.Token |