R: Transform Rmd contents

transform_rmd {styler} | R Documentation

## 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

[Package styler version 1.0.2 Index]