R/glue.R

Defines functions insertglue

Documented in insertglue

#' Concatenate vectors after converting to character.
#'
#' @param a one R objects, to be converted to character vectors.
#' @param b one R objects, to be converted to character vectors.
#'
#' @return one vector
#' @export
#'
#' @examples
#' 1 %+% 1
"%+%" <- function(a,b){
    paste0(a,b)
}

#' glue
#'
#' @export
#'
insertglue <- function(){
    rstudioapi::insertText(' %+% ')
}

Try the do package in your browser

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

do documentation built on Aug. 3, 2021, 5:06 p.m.