R/dots.r

check_dots_empty = function (definition = sys.function(sys.parent()), call = sys.call(sys.parent())) {
  dots = match.call(definition = definition, call = call, expand.dots = FALSE)$...
  if (length(dots) == 0L) {
    return()
  }

  stop(simpleError('`...` must be empty.\n\u2139 Did you forget to name an argument?', call))
}

Try the rprofile package in your browser

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

rprofile documentation built on Nov. 2, 2023, 5:06 p.m.