inst/unitTests/runTests.R

if (require("RUnit", quietly = TRUE)) {
    localTesting <- TRUE
    require("NMOF")
    if (localTesting)
        path <- "~/Packages/NMOF/inst/unitTests" else
    path <- system.file("unitTests", package = "NMOF")

    myTestSuite <- defineTestSuite("NMOF",
                                   dirs = path,
                                   testFileRegexp = "unitTests.+")
    stopifnot(isValidTestSuite(myTestSuite))
    testResult <- runTestSuite(myTestSuite, verbose = 0L)
    printTextProtocol(testResult, showDetails = TRUE,
                      fileName = paste(file.path(path, "report"),
                      ".txt", sep = ""))
}

Try the NMOF package in your browser

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

NMOF documentation built on May 2, 2019, 6:39 p.m.