R/test.R

Defines functions atime_test_list atime_test

Documented in atime_test atime_test_list

atime_test <- function(...){
  as.list(match.call()[-1])
}

atime_test_list <- function(..., N, setup, expr, times, seconds.limit, verbose, pkg.edit.fun, result, tests=NULL){
  could.copy <- intersect(names(formals(atime_versions)),names(formals()))
  mc <- as.list(match.call()[-1])
  copy.names <- intersect(names(mc), could.copy)
  L <- c(tests, list(...))
  out <- list()
  for(L.i in seq_along(L)){
    test.args <- L[[L.i]]
    test.name <- names(L)[[L.i]]
    if(!is.null(test.args)){
      test.args[copy.names] <- mc[copy.names]
      out[[test.name]] <- test.args
    }
  }
  out
}

Try the atime package in your browser

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

atime documentation built on May 29, 2024, 7:12 a.m.