inst/test_suite/ptest_test_suite.R

library("RUnit")

for (nm in list.files("../unitTests/ptest/", pattern = "\\.[Rr]$")){
  source(file.path("../unitTests/ptest/", nm))
}

test.suite <- defineTestSuite("ptest", dirs = file.path("../unitTests/ptest/"),testFileRegexp = '*.R')
library("sprint")
test.result <- runTestSuite(test.suite)
printTextProtocol(test.result)
pterminate()
quit()

Try the sprint package in your browser

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

sprint documentation built on May 30, 2017, 8:25 a.m.