separate_chunks {styler}R Documentation

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


[Package styler version 1.0.2 Index]