R/dotsLength.R

Defines functions ...length

Documented in ...length

#' @title Backport of ...length for R < 3.4.2
#' @rdname dotsLength
#'
#' @description
#' See the original description in \code{base::...length}.
#'
#' @keywords internal
#' @rawNamespace if (getRversion() < "3.5.0") export(...length)
#' @useDynLib backports dotsLength
#' @examples
#' # get function from namespace instead of possibly getting
#' # implementation shipped with recent R versions:
#' bp_...length = getFromNamespace("...length", "backports")
#'
#' foo = function(...) bp_...length()
#' foo(1, 2, 3)
...length = function() {
  .Call(dotsLength, parent.frame())
}

Try the backports package in your browser

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

backports documentation built on June 24, 2024, 5:24 p.m.