styler (version 1.0.9000)

get_knitr_pattern: Get chunk pattern

Description

Determine a regex pattern for identifying R code chunks.

Usage

get_knitr_pattern(lines)

Arguments

lines

a character vector of lines from an Rmd file