insert_purl_section: Insert Purl Section

View source: R/insert_purl_section.R

insert_purl_sectionR Documentation

Insert Purl Section

Description

insert_purl_section insert ## ---- ---- at an empty line in the script, or turns a non-empty line to a comment with purl section header ## ---- (or turns it back). The header is recognised by knitr::read_chunk to read code for each chunk in the rmarkdown file from R script. See ?knitr::read_chunk for more details. I suggest binding this addin with shortcut Shift+Ctrl+Q.

Usage

insert_purl_section()

purl_dialogue(dialogue = TRUE)

Arguments

dialogue

Logical. Whether trigger a dialogue when input label.

Details

Windows user can trigger a dialogue when input label. Use purl_dialogue(TRUE) or set options(purl_dialogue = TRUE) to turn it on.

Author(s)

Yangzhuoran Yang

See Also

knitr::read_chunk, insert_rmarkdown_chunk_editlabel


FinYang/lazytex documentation built on May 5, 2023, 6:48 p.m.