R/rs_insert_text.R
rs_insert_text.Rd
Insert text at the cursor position.
rs_insert_text(text = NULL, context = rs_get_context(), spaces = FALSE)
(character) The text to insert.
(class document_context) Object with context of active RStudio document.
document_context
(logical) If TRUE, ensures that text is surrounded by spaces.
TRUE