R: Identifies raw R code chunks

identify_r_raw_chunks {styler} | R Documentation

## Identifies raw R code chunks

### Description

Raw in the sense that these chunks don't contain pure R code, but they contain a header and footer of markdown. Only code chunks that have an engine whose name matches `engine-pattern` are considered as R code.

### Usage

    identify_r_raw_chunks(lines, engine_pattern = get_engine_pattern())

### Arguments

`lines` | a character vector of lines from an Rmd file
`engine_pattern` | A regular expression that must match the engine name.

[Package styler version 1.0.2 Index]