rs_insert_text: Insert text at the cursor position.

View source: R/rs_insert_text.R

rs_insert_textR Documentation

Insert text at the cursor position.

Description

Insert text at the cursor position.

Usage

rs_insert_text(text = NULL, context = rs_get_context(), spaces = FALSE)

Arguments

text

(character)
The text to insert.

context

(class document_context)
Object with context of active RStudio document.

spaces

(logical)
If TRUE, ensures that text is surrounded by spaces.


GegznaV/addin.tools documentation built on Aug. 24, 2023, 5:35 p.m.