Insert text at the beginning of the first selected row.

rs_insert_before_first_selected_row(text = "",
  ensure_blank_above = FALSE, context = get_context())

Arguments

text

(character) The text to add.

ensure_blank_above

(logical) If TRUE, checks if there is a blank line above/bolow the selection. If line is not blank, a blank line is added. If FALSE, blank line is not added.

context

Object with context of active R Studio document (class document_context).