Calculate number of characters in each selection.
rs_get_selection_length(
selection = c("all", "first", "last"),
context = rs_get_context()
)(string)
String that indicates, which selection should be extracted.
(class document_context)
Object with context of active RStudio document.
An integer vector with number of characters in each selection.