Learn R Programming

styler (version 1.0.2)

separate_chunks: Separate chunks within Rmd contents

Description

Identifies and separates the code and text chunks (the latter includes non-R code) within an Rmd file, and returns these separately.

Usage

separate_chunks(lines)

Arguments

lines

a character vector of lines from an Rmd file