R/utils.R

Defines functions check_dots_empty

check_dots_empty <- function(...) {
  if (dots_n(...) == 0L) {
    return(invisible())
  }

  abort(paste0(
    "`...` is not empty.\n",
    "These dots only exist to allow for future extensions, and should be empty.\n",
    "Did you misspecify an argument?"
  ))
}

Try the fredr package in your browser

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

fredr documentation built on Jan. 30, 2021, 1:06 a.m.