RStudio add-in to insert either ->, ->>, <- or <<- at the cursor position.

rs_insert_arrow_rl(context = rs_get_context())

rs_insert_arrow_rl2(context = rs_get_context())

rs_insert_arrow_lr(context = rs_get_context())

rs_insert_arrow_lr2(context = rs_get_context())

Arguments

context

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

Note

use hotkeys combination ALT + - to insert <- in RStudio.

See also

Assignment operators assignOps.

Other 'Insert at cursor position' addins: insert_line

Examples