R/call.list.R

###-----------------------------------------------------------------------------
###
### generate a list of function arguments for the calling function
###
##'@noRd
.call.list <- function (x = NULL) {
  if (is.null (x))
    x <- sys.call (-1)

  if (length (x) < 3L)
    I (list ())
  else {
    x <- as.list (x [- (1 : 2)])
    I (x)
  }
}
GegznaV/hyperSpec2 documentation built on Dec. 27, 2019, 9:43 a.m.