inst/unitTests/doTests.R

library(RUnit)
library(CodeDepends)

testSuite = defineTestSuite(name = "CodeDepends",
  dirs = getwd(),
  testFileRegexp="^test.*\\.R$",
  testFuncRegexp="^test.*")

tests = runTestSuite(testSuite)
printTextProtocol(tests, showDetails=FALSE)

Try the CodeDepends package in your browser

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

CodeDepends documentation built on May 2, 2019, 4:19 a.m.