Insert text at the beginning of the row.

rs_insert_at_row_start(row, text = NULL, id = NULL)

Arguments

row

(integer) The index of the row.

text

(character) The text to add.

id

The document id. When NULL or blank, the mutation will apply to the currently open, or last focused, RStudio document. Use the id returned from getActiveDocumentContext() to ensure that the operation is applied on the intended document.