tinkr: Cast '(R)Markdown' Files to 'XML' and Back Again (original) (raw)
Parsing '(R)Markdown' files with numerous regular expressions can be fraught with peril, but it does not have to be this way. Converting '(R)Markdown' files to 'XML' using the 'commonmark' package allows in-memory editing via of 'markdown' elements via 'XPath' through the extensible 'R6' class called 'yarn'. These modified 'XML' representations can be written to '(R)Markdown' documents via an 'xslt' stylesheet which implements an extended version of 'GitHub'-flavoured 'markdown' so that you can tinker to your hearts content.
| Version: | 0.3.1 |
|---|---|
| Depends: | R (≥ 4.1.0) |
| Imports: | commonmark (≥ 1.6), glue, lifecycle, magrittr, purrr, R6, rlang (≥ 0.4.5), xml2, xslt |
| Suggests: | knitr, rmarkdown, covr, testthat (≥ 3.0.0), withr |
| Published: | 2025-10-04 |
| DOI: | 10.32614/CRAN.package.tinkr |
| Author: | Maëlle Salmon |
| Maintainer: | Zhian N. Kamvar |
| BugReports: | https://github.com/ropensci/tinkr/issues |
| License: | GPL-3 |
| URL: | https://docs.ropensci.org/tinkr/,https://github.com/ropensci/tinkr |
| NeedsCompilation: | no |
| Language: | en-US |
| Materials: | README, NEWS |
| CRAN checks: | tinkr results |
Documentation:
Downloads:
Linking:
Please use the canonical formhttps://CRAN.R-project.org/package=tinkrto link to this page.