R/selections.R
selections.Rd
These functions allow users of the rstudioapi package to read and write the user's current selection within the RStudio IDE.
rstudioapi
selectionGet(id = NULL) selectionSet(value = NULL, id = NULL)
The document ID. When NULL (the default), the active, or most-recently edited, document will be used.
NULL
The text contents to set for the selection.