R/insert_backpipe.R

#' Insert backpipe
#'
#' Call this function to insert `%<-%` at the cursor position.
#' 
#' @details 
#' 
#' Use **Tools > Modify Keyboard Shortcuts** to bind a  ->.;  ->.;  
#'
#' @md 
#' @export

insert_backpipe <- function() {
  if( requireNamespace('rstudioapi', quietly = TRUE ) )
    rstudioapi::insertText(" %<% ")
}

Try the backpipe package in your browser

Any scripts or data that you put into this service are public.

backpipe documentation built on May 2, 2019, 5:41 a.m.