Determine a regex pattern for identifying R code chunks.
get_knitr_pattern(lines)
lines
a character vector of lines from an Rmd file