tests/testthat/_snaps/rmd_modify.md

rmd_modify validates .f argument

Assertion on '.f' failed: Must be a function, not 'character'.
Assertion on '.f' failed: Must be a function, not 'double'.

rmd_modify error handling

Unsupported type

rmd_modify validates function results

i In index: 1.
Caused by error:
! Function must return a valid rmd node object at position 1
i In index: 1.
Caused by error:
! Function must return a valid rmd node object at position 1
i In index: 1.
Caused by error:
! Function must return a valid rmd node object at position 1
i In index: 1.
Caused by error:
! Function must return a valid rmd node object at position 1

rmd_modify validates chunk structure

i In index: 1.
Caused by error:
! <rmd_chunk>@engine must be <character>, not <double>

rmd_modify validates heading structure

i In index: 1.
Caused by error:
! <rmd_heading> object is invalid:
- level must be a single integer between 1 and 6


Try the parsermd package in your browser

Any scripts or data that you put into this service are public.

parsermd documentation built on Aug. 21, 2025, 5:27 p.m.