R/util.R

Defines functions check_empty_dots

check_empty_dots <- function(...) {
  dots <- rlang::enquos(...)

  dots_are_empty <- length(dots) == 0L

  if (!dots_are_empty) {
    rlang::abort("`...` must be empty.")
  }

  invisible()
}

Try the strapgod package in your browser

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

strapgod documentation built on Sept. 20, 2019, 9:04 a.m.