Call this function as an add-in to insert %% at the cursor position.

rs_insert_modulo(context = rs_get_context())

Arguments

context

(class document_context)
Object with context of active RStudio document.

Note

Operator does not work unless package which contains this operator is loaded.