
Last chance! 50% off unlimited learning
Sale ends in
Last chance! 50% off unlimited learning
Sale ends in
Identifies and separates the code and text chunks (the latter includes non-R code) within an Rmd or Rnw file, and returns these separately.
separate_chunks(lines, filetype)
A character vector of lines from an Rmd or Rnw file.
A string indicating the filetype - either 'Rmd' or 'Rnw'.