Call this function as an add-in to enclose selected text with percent operator %
.
rs_enclose_with_percent(context = rs_get_context())
(class document_context
)
Object with context of active RStudio document.
Other 'Insert at cursor position' add-ins:
insert_magrittr_operators
,
rs_insert_infix_in()
,
rs_insert_integer_division()
,
rs_insert_matrix_multiplication()
,
rs_insert_modulo()