current_selection: Current selection

View source: R/08_current_selection.R

current_selectionR Documentation

Current selection

Description

Utilities to get data about the selection

Usage

current_selection(
  target = c("default", "lines", "script"),
  window = c("source", "console", "active")
)

current_call(target = c("default", "lines", "script"))

current_expr(target = c("default", "lines", "script"))

current_value(target = c("default", "lines", "script"))

current_line_numbers(target = c("default", "lines", "script"))

current_lines(target = c("default", "lines", "script"))

current_indentation(target = c("default", "lines", "script"))

current_path(full = TRUE)

document_code()

current_code_block()

current_quoted_status()

Arguments

target

If target is "lines" the selection is extended to lines, if it is "script" it is extended to the full script

window

One of "source" (for the source window), "console" (for the console) or "active" (for the active document). See rstudioapi::rstudio-editors.

full

boolean. Whether to return full path or base name


moodymudskipper/poof documentation built on Dec. 10, 2024, 12:07 a.m.