rs_get_position: Get position(s) related to the selection(s).

rs_get_positionR Documentation

Get position(s) related to the selection(s).

Description

Get position(s) related to the selection(s).

Usage

rs_get_position_selection_start(
  selection = c("all", "first", "last"),
  context = rs_get_context()
)

rs_get_position_selection_end(
  selection = c("all", "first", "last"),
  context = rs_get_context()
)

rs_get_index_selection_start(
  selection = c("first", "last"),
  context = rs_get_context()
)

rs_get_index_selection_end(
  selection = c("last", "first"),
  context = rs_get_context()
)

Arguments

selection

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

context

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

Value

A list of docdument_position objects.


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