R/pipe.R

Defines functions insert_pipe

#' Insert the base pipe
#'
#' \code{insert_pipe} inserts a pipe wherever the cursor currently is
#' (console or editor)
#'
#' @examples
#' insert_pipe()
#'
insert_pipe <- function() {
  rstudioapi::insertText(" |> ")
}
richysix/miscr documentation built on March 24, 2023, 5:24 a.m.