Skip to content

tinkr

Cast '(R)Markdown' Files to 'XML' and Back Again

v0.3.1 · Oct 4, 2025 · GPL-3

Description

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.

Downloads

CRAN

425

Last 30 days

10082nd

1.4K

Last 90 days

7.4K

Last year

Trend: +15.5% (30d vs prior 30d)

r2u CRAN

0

Last 30 days

29

Last 90 days

133

Last year

Trend: -100% (30d vs prior 30d)

conda-forge CRAN

40

Last 30 days

213

Last 90 days

2.5K

Last year

Trend: -56% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

tests

Running ‘testthat.R’ [5s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tinkr)
  > 
  > test_check("tinkr")
  Saving _problems/test-show-68.R
  [ FAIL 1 | WARN 0 | SKIP 29 | PASS 213 ]
  
  ══ S
...[truncated]...
4.     └─testthat:::verify_exec(quo_get_expr(x), quo_get_env(x), replay)
   5.       └─withr::local_pdf(device_path)
   6.         └─grDevices::pdf(new, ...)
  
  [ FAIL 1 | WARN 0 | SKIP 29 | PASS 213 ]
  Error:
  ! Test failures.
  Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

7,656

Files

103

Compiled share

0%

Has compiled src

No

Language breakdown

R 2,392 (31.2%)Tests 3,368 (44%)Docs 1,822 (23.8%)Vignettes 74 (1%)

API

Exported functions

14

Internal functions

78

Recent export changes

v0.3.0+6 get_protected, protect_fences, show_block +3 more
v0.2.0+1 protect_curly

Testing & CI

Has tests

Yes

Test-to-code ratio

1.41

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

90.9%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

50%

Unsafe pattern score

3

Dep constraint coverage

22.2%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.1.0

System requirements

C++ standard

License

GPL-3

License flags

SPDX valid, OSI approved

History

Versions

4

First release

2022-08-19

Latest release

2025-10-04

Avg cadence

221 days

Cold removal rate

Dep drift

4

LOC over versions

v0.1.0: 4,362 LOCv0.2.0: 5,119 LOCv0.3.0: 7,448 LOCv0.3.1: 7,656 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies commonmark glue lifecycle magrittr purrr R6 rlang xml2 xslt tinkr

Version History

5 tracked
new 0.3.1 Mar 10, 2026
updated 0.3.1 ← 0.3.0 diff Oct 3, 2025
updated 0.3.0 ← 0.2.0 diff May 2, 2025
updated 0.2.0 ← 0.1.0 diff Mar 27, 2023
new 0.1.0 Aug 18, 2022