rs_get_selection_text: Get selection text.

View source: R/rs_get_selection.R

rs_get_selection_textR Documentation

Get selection text.

Description

Get the text in either the first selection or all selections.

Usage

rs_get_selection_text(
  selection = c("all", "first", "last"),
  as_list = FALSE,
  context = rs_get_context()
)

Arguments

selection

(string)
String that indicates, which selection should be extracted.

as_list

(logical) Flag, if result should be a list, if selection is either "first" or "last".

context

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

Value

A character vector.


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