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

rs_insert_infix_in(context = rs_get_context())

Arguments

context

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