primary_selection: Extract the Primary Selection

Description Usage Arguments

Description

By default, functions returning a document context will return a list of selections, including both the 'primary' selection and also 'other' selections (e.g. to handle the case where a user might have multiple cursors active). Use primary_selection() to extract the primary selection.

Usage

1

Arguments

x

A document context, or a selection.

...

Optional arguments (currently ignored).


rstudio/rstudioapi documentation built on June 7, 2019, 3:43 p.m.