Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

get_engine_pattern

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

Non-Invasive Pretty Printing of R Code

v1.4.1
MIT + file LICENSE
Authors
Kirill Müller [aut], Lorenz Walthert [cre, aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.