R/cat0.R

Defines functions cat0

Documented in cat0

#' Concatenate to screen without spaces
#'
#' The cat0 function is to cat what paste0 is to paste; it
#' simply makes concatenating many strings without a separator easier.
#'
#' @param ... The character vector(s) to print; passed to [cat].
#' @param sep The separator to pass to [cat], of course, `""` by default.
#'
#' @return Nothing (invisible `NULL`, like [cat]).
#' @export
#'
#' @examples cat0("The first variable is '", names(mtcars)[1], "'.");
cat0 <- function(..., sep="") {
  return(cat(..., sep=sep));
}

Try the ufs package in your browser

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

ufs documentation built on May 29, 2024, 10:30 a.m.