Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


styler (version 0.0-9)

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