R/utils.R

Defines functions check_character_one

#' Check Parameter Is A `character(1)`
#'
#' @param x An R object
#'
#' @return
#' If successful, `invisible(NULL)`, otherwise errors.
#'
#' @noRd
check_character_one <- function(x) {
  stopifnot(is.character(x = x), length(x = x) == 1L)
}

Try the catalog package in your browser

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

catalog documentation built on Aug. 23, 2022, 1:07 a.m.