transform_rmd: Transform Rmd contents
Description
Applies the supplied transformer function to code chunks identified within
an Rmd file and recombines the resulting (styled) code chunks with the text
chunks.
Usage
transform_rmd(lines, transformer_fun)
Arguments
lines
A character vector of lines from an Rmd file
transformer_fun
A styler transformer function