Skip to content

gridmicrotex

0.2.0Package record

Native 'LaTeX' Math Rendering for Grid Graphics

0packages dependsuggested by 1
2.5Kdownloads / year
85.6%test coverage
13/13flavors OK

Overview

About

Renders 'LaTeX' math equations as native R grid graphics objects (grobs) using the 'MicroTeX' 'C++' library as the layout engine. Produces resolution-independent vector output that works on any R graphics device, with no external 'LaTeX' installation required. Markdown labels and block documents that mix prose formatting with math are also rendered, for use with both 'grid' and 'ggplot2'.

Changes in 0.2.0
  • LaTeX is read by a new, faster parser that follows TeX's rules, so macros, environments and starred forms work as in LaTeX, and malformed input is drawn with a warning giving its line:col instead of failing. As in TeX, a space after a command is dropped (write \LaTeX{} is), and _, ^, # and & outside math warn.
  • New input_mode = "document" renders a LaTeX document body, or a whole pasted paper, wrapped at max_width (see vignette("documents")). Markdown is now laid out the same way, so its paragraphs, styled spans and tables stay within their box.
  • New latex_options(device_math = TRUE) renders $…$ math in base graphics labels.
  • New load_font() names a font file or an installed family, with its bold and italic files, and available_fonts() lists them. latex_options() takes main_font, sans_font and mono_font, the fonts of the body, \textsf and \texttt. load_math_font(), available_math_fonts() and check_math_fonts() are superseded by load_font() and available_fonts(); they still work.
  • Text in a font given to load_font() is measured and drawn from the font file, so it looks the same on every device, base pdf() included, where a font file never worked before. Other families are still the device's.
  • An image that cannot be drawn is now an error saying why, figures load about ten times faster, and many bugs are fixed.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 12.6 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK13 OK2026-05-17
Show 1 earlier changeHide 1 earlier change
  • WARNING6 OK, 1 WARNING2026-05-09
Advisories

none known

Documentation

In release 0.2.0
READMEYes · 437 wordsVignettesYes · 5 · dynamicNEWSYes · 100% structured · mentions 0.2.0Citation fileNoWebsiteYes · pkgdown
Help pages
22 (2 internal)includes a package overview page
Examples that run
38%8 run in a plain check · 13 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
100%
Documented parameters
92%
Return-value docs
100%
Help pages citing references
0%

Downloads

2.5K
CRAN downloads in the past year
Rank #7,362 · ~7/day · ~210/mo
Daily download trend is not available in this view yet.
51630 days
1.2K90 days
2.5K1 year
Compare downloads with other packages →
Also on164 r2u

Repository

0Stars
0Forks
0Open issues
0Open PRs
7Releases
269Commits
2Commit identities
269 commits · Last activity 2026-10-24 · Default branch at 0.3.0, ahead of CRAN 0.2.0 (checked 2026-10-21)
Responsiveness
How these are sampled
PRs merged (all time)
93%
Median days to close, 50 most recently updated closed issues
not measured
Median days to close, 50 most recently updated closed PRs
0

Releases over time

2026-04-18 · 12026-10-05 · 7
PracticesBeta

11 development-tooling and community-health practices detected across 6 families in the upstream repository

Checks run against github.com/adayim/gridmicrotex on 2026-10-21.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-10-18 · The repository has a site deploy workflow

pkgdown site last built 2026-10-18

Coverage (2)
Coverage reporting.covrignore
CRAN release process (1)
cran-comments.md
Show all practicesHide 2 practices
Lint, format, editor (1)
RStudio project
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v4 (2026-10-20)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-04-18
    Named in .Rbuildignore: .claude, CLAUDE.md
    Named in .gitignore: CLAUDE.md
    Commits: at least 147 crediting it in the message
  • GitHub Copilotfirst seen 2026-08-23
    Pull request: opened by its own account
Models named in its commits
  • Claude Sonnet 5.540 commits · Oct 2026
  • Claude Opus 522 commits · Sep 2026
  • Claude Opus 5.519 commits · Sep 2026
  • Claude Opus 4.816 commits · Jul 2026
  • Claude Sonnet 52 commits · Oct 2026

1 more model not listed. Some of these counts are a minimum, because the search stopped before the oldest commits.

Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
19 external dependencies (excludes base and recommended)

Installing gridmicrotex adds 10 packages (8 with compiled code, 5.4 MB of source tarballs). Heaviest: Rcpp 1.8 MB, jsonlite 1.0 MB, rlang 766 KB.

Depends (1)
R >= 4.2.0
Imports (8)
commonmarkgrDevicesgridRcppsystemfontstoolsutilsxml2
LinkingTo (2)
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 1
Suggests, most downloaded first

People & History

People (3)
Author, Maintainer since 0.0.1 (2026)
Copyright holder
See inst/COPYRIGHTS for the full list of authors of the bundled math fonts.
Copyright holder
Author of included 'MicroTeX' library
Releases (8)

Pick two releases to compare their code metrics.

  • 0.2.0Latest
    record
    2026-10-04 · current release · diff ↗ ·
    removed 1 export
    check_fonts
    added 1 export
    available_fonts
    ·
    listed once in CRAN's queue
    Seen in one reading of CRAN's incoming queue, at 2026-10-04 20:43 UTC, so it stayed less than the time between readings.
  • 0.1.1
    record
    2026-08-24 · diff ↗
  • 0.1.0
    record
    2026-08-21 · diff ↗ ·
    added 12 exports
    GeomMarkdown, available_highlighters, check_math_fonts, element_markdown, geom_markdown, grid.markdown, load_math_font, markdown_box_grob, markdown_grob, markdown_style, md_style, register_highlighter
  • 0.0.5
    record
    2026-07-21 · diff ↗
  • 0.0.4
    record
    2026-06-01 · diff ↗
  • 0.0.3
    record
    2026-05-18 · diff ↗
  • 0.0.2
    record
    2026-05-16 · diff ↗ ·
    added 1 export
    grobMark
  • 0.0.1
    record
    2026-05-08
  • R
    R 4.6.0 released · 2026-04-24
Across CRAN, the median accepted release of the past year spent 26 hours in the queue, 90% under 11 days.How queue time is measured

Package metadata

First published
2026-05-08
Total releases
8 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.2.0
Download size
2.7 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("gridmicrotex")
Dayim, A., Bundled math font authors, , & Michael, N. (2026). gridmicrotex: Native 'LaTeX' Math Rendering for Grid Graphics (Version 0.2.0) [Computer software]. https://doi.org/10.32614/CRAN.package.gridmicrotex

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for gridmicrotex version 0.2.0 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy