R/check_same_length.R

Defines functions check_same_length

#' Check all elements for length equality
#'
#' @param ... any number of vectors.
#'
#' @return TRUE or FALSE
#' @noRd
check_same_length <- function(...) {
  sapply(list(...), length) %>%
    unique() %>%
    length() == 1
}
henobe/flexoptr documentation built on March 11, 2021, 6:04 p.m.