code_from_editor: Converts raw editor text to a string of code

Description Usage Arguments Value

View source: R/demo_chunk.R

Description

Raw editor text has been taken from an active RStudio session via rstudioapi::getSourceEditorContext(). Chunk delimiters and html is removed, all formatting is otherwise perserved.

Usage

1
code_from_editor(.contents, label)

Arguments

.contents

Value

chunk text


kbodwin/demoR documentation built on Nov. 10, 2019, 11:30 p.m.