These add-ins insert operators %>%, %<>%, %$%, and %T>% at the cursor position. The operators are defined in package magrittr.

rs_insert_pipe(context = rs_get_context())

rs_insert_update_pipe(context = rs_get_context())

rs_insert_exposition_pipe(context = rs_get_context())

rs_insert_tee_pipe(context = rs_get_context())

Arguments

context

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

Note

Operator does not work unless package magrittr or equivalent is loaded.

See also

  • Forward pipeline operator %>%

  • Compound assignment pipe operator %<>%

  • Exposition pipe operator %$% and operator $

  • Tee operator %T>%

Other 'Insert at cursor position' add-ins: rs_enclose_with_percent(), rs_insert_infix_in(), rs_insert_integer_division(), rs_insert_matrix_multiplication(), rs_insert_modulo()