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

identify_raw_chunks

Identifies raw Rmd or Rnw code chunks


Description

Raw in the sense that these chunks don't contain pure R code, but they contain a header and footer of markdown. Only code chunks that have an engine whose name matches engine-pattern are considered as R code.

Usage

identify_raw_chunks(lines, filetype, engine_pattern = get_engine_pattern())

Arguments

lines

A character vector of lines from an Rmd or Rnw file.

filetype

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

engine_pattern

A regular expression that must match the engine name.


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.