Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

selections

Manipulate User Selections in the RStudio IDE


Description

These functions allow users of the rstudioapi package to read and write the user's current selection within the RStudio IDE.

Usage

selectionGet(id = NULL)

selectionSet(value = NULL, id = NULL)

Arguments

id

The document ID. When NULL (the default), the active, or most-recently edited, document will be used.

value

The text contents to set for the selection.


rstudioapi

Safely Access the RStudio API

v0.13
MIT + file LICENSE
Authors
Kevin Ushey [aut, cre], JJ Allaire [aut], Hadley Wickham [aut], Gary Ritchie [aut], RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.