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.
insert_purl_section() purl_dialogue(dialogue = TRUE)
| dialogue | Logical. Whether trigger a dialogue when input label. |
|---|
Windows user can trigger a dialogue when input label. Use purl_dialogue(TRUE) or set options(purl_dialogue = TRUE)
to turn it on.
knitr::read_chunk, insert_rmarkdown_chunk_editlabel