styler (version 1.0.9000)

identify_chunks: Identify chunks within Rmd contents

Description

Identifies the code and text chunks within an Rmd file, and returns these as a nested list.

Usage

identify_chunks(lines)

Arguments

lines

a character vector of lines from an Rmd file