Package: munch 0.0.4

David Gohel

munch: Rich Inline Text for 'grid' Graphics and 'flextable'

Renders rich inline text (bold, italic, code, links, images) in grid graphics and 'ggplot2', from markdown or 'flextable' chunks. Provides grobs, theme elements, and geometry layers for styled text rendering. Only works with graphics devices that support 'systemfonts', such as those provided by 'ragg', 'svglite', or 'ggiraph'. The 'cairo_pdf' device is also supported when fonts are installed at the system level, except on Windows, where it ignores the spacing between pairs of letters stored in the fonts.

Authors:David Gohel [aut, cre], ArData [cph]

munch_0.0.4.tar.gz
munch_0.0.4.zip(r-4.7-any)munch_0.0.4.zip(r-4.6-any)
munch_0.0.4.tar.gz(r-4.7-any)munch_0.0.4.tar.gz(r-4.6-any)
munch_0.0.4.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
munch/json (API)

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

Bug tracker:https://github.com/ardata-fr/munch/issues

Pkgdown/docs site:https://ardata-fr.github.io

On CRAN:

Conda:

3.65 score 560 downloads 11 exports 69 dependencies

Last updated from:7344b46bc8. Checks:6 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-develOK160
source / vignettesOK235
linux-releaseOK201
windows-develOK175
windows-releaseOK168
wasm-releaseOK127

Exports:as_paragraph_mdchunks_grobdefault_text_propselement_chunkselement_mdgeom_label_mdgeom_text_mdGeomLabelMdGeomTextMdmd_grobmunch_annotation

Dependencies:askpassbase64encbslibcachemclicommonmarkcpp11data.tabledigestdplyrevaluatefarverfastmapflextablefontawesomefontBitstreamVerafontLiberationfontquiverfsgdtoolsgenericsggplot2gluegtablehighrhtmltoolsisobandjquerylibjsonliteknitrlabelinglifecyclemagrittrmemoisemimeofficeropensslpatchworkpillarpkgconfigpurrrR6raggrappdirsRColorBrewerRcpprlangrmarkdownS7sassscalesstringistringrsyssystemfontstextshapingtibbletidyrtidyselecttinytexutf8uuidvctrsviridisLitewithrxfunxml2yamlzip

Advanced usage
Creating grobs with md_grob() | Basic usage | Positioning and justification | Automatic text wrapping | Creating grobs with chunks_grob() | Complex formatting | Colored and highlighted text | Configuring text properties | Available parameters | Integration with flextable theming | Embedding images | In markdown | With flextable chunks | Image baseline alignment | Using grobs in ggplot2 | Flextable integration

Last update: 2026-11-20
Started: 2026-04-16

Font recipes
Measurement vs rendering | Which devices agree with measurement? | systemfonts devices (recommended) | Cairo devices | Bitmap devices png() and jpeg() | The pdf() device and extrafont | Example: exporting a munch plot to PDF | Font sources at a glance | Diagnosing font problems

Last update: 2026-11-20
Started: 2026-04-16

Using munch with ggplot2
Simple markdown with element_md() | Long titles | Axis tick labels | Legends | All texts of a plot | Advanced formatting with element_chunks() | The as_paragraph() vocabulary | Scientific notation | Colors and highlighting | Images in theme elements | Layout parameters | Text annotations with geom_text_md() and geom_label_md() | Text wrapping | Images in labels | Alignment accuracy | Choosing the right approach

Last update: 2026-11-20
Started: 2026-11-10