get_knitr_pattern: Get chunk pattern

View source: R/transform-code.R

get_knitr_patternR Documentation

Get chunk pattern

Description

Determine a regex pattern for identifying R code chunks.

Usage

get_knitr_pattern(filetype)

Arguments

filetype

A string indicating the filetype - either 'Rmd' or 'Rnw'.


krlmlr/styler documentation built on Dec. 12, 2024, 8:36 a.m.