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 [aut], Zhian N. Kamvar [aut, cre], Jeroen Ooms [aut], Nick Wellnhofer [cph] (Nick Wellnhofer wrote the XSLT stylesheet.), rOpenSci [fnd], Peter Daengeli [ctb] |
| Maintainer: | Zhian N. Kamvar <zkamvar at gmail.com> |
| 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 |