code_from_editor: Converts raw editor text to a string of code

Description Usage Arguments Value

View source: R/decorate_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 preserved.

Usage

1
code_from_editor(.contents, chunk_name)

Arguments

.contents

chunk contents passed from editor context

chunk_name

label of chunk

Value

chunk text


flair documentation built on April 24, 2020, 1:06 a.m.