R/allTest.R

allTest  <- function(dirs =  file.path(path.package(package = "processdata"), "unitTests")) {
  if(!require(RUnit))
    stop("Package 'RUnit' is not installed")

  processdataTestSuite <- defineTestSuite("processdata",
                                          dirs = dirs)

  RUnitOp <- getOption("RUnit")
  RUnitOp$verbose <- 0
  RUnitOp$silent <- TRUE
  RUnitOp <- options(RUnit = RUnitOp)
  testResults <- runTestSuite(processdataTestSuite)
  options(RUnit = RUnitOp$RUnit)
  
  return(testResults)
}


                                        

Try the processdata package in your browser

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

processdata documentation built on May 2, 2019, 5:23 p.m.