get_engine_pattern: What's the engine pattern for rmd code chunks?

View source: R/transform-code.R

get_engine_patternR Documentation

What's the engine pattern for rmd code chunks?

Description

The function returns the regular expression pattern that identifies all r engines in Rmd chunks. Defaults to ⁠[Rr]⁠. You probably only want to change this if you create a knitr engine that processes R code but is not the default engine r. The pattern must be followed by a space (in the case the chunk is given a name), a comma (if no name is given but further options are passed to the engine) or a closing curly brace (in case no option and no name is given to the chunk).

Usage

get_engine_pattern()

styler documentation built on Aug. 29, 2023, 5:10 p.m.