R/insertIn.R

Defines functions insertIn

Documented in insertIn

#' Insert `%in%`
#'
#' Inserts [`%in%`][base::%in%] at the cursor position.
#'
#' @export
insertIn <- function() {
    glyph <- paste0("%in%", " ")
    rstudioapi::insertText(ifelse(nextToSpace(), glyph, prefixSpace(glyph)))
}
konradedgar/extraInserts documentation built on Feb. 20, 2023, 3:39 a.m.