rs_get_selection_length: Get length of selection.

View source: R/rs_get_selection.R

rs_get_selection_lengthR Documentation

Get length of selection.

Description

Calculate number of characters in each selection.

Usage

rs_get_selection_length(
  selection = c("all", "first", "last"),
  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

An integer vector with number of characters in each selection.


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