tests/bootstrap.R

load("exemplar_data.rda")
library(PCICt)

if(require("RUnit", quietly=TRUE)) {
  ## Run all the tests
  testsuite <- defineTestSuite("climdex.pcic", dirs=".", testFileRegexp = "^test_.+.R$", testFuncRegexp = "^climdex.pcic.test.+")
  climdex.pcic.test.result <- runTestSuite(testsuite, useOwnErrorHandler=F)
  printTextProtocol(climdex.pcic.test.result)
  stopifnot(climdex.pcic.test.result$climdex.pcic$nFail == 0 && climdex.pcic.test.result$climdex.pcic$nErr == 0)    
}

Try the climdex.pcic package in your browser

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

climdex.pcic documentation built on March 26, 2020, 7:17 p.m.