validate(files, test.loc, verbose = FALSE, outfile, allFiles = FALSE) validate.package(package, verbose = FALSE, outfile = "", lib.loc = NULL, allFiles = FALSE) validate.tests(test.loc)
files | a vector of test file names. If files is not specified, all files with a ".t" file extension located in "test.loc" directory are executed. |
test.loc | a character string specifying the location of the test files. The default directory is the tests subdirectory located in the home validation package directory. |
verbose | a logical value that controls the printed output. If "TRUE", each test expression is printed, regardless of whether a test fails. Otherwise, only test expressions for failed tests are printed. The default is "FALSE". |
outfile | a character string specifying the name of the output file to which test results are written. By default, the output is written to the screen. |
lib.loc | a character string specifying where to find the package. This is not needed if the package is installed in the one of the default package locations. |
allFiles | a logical value, if "TRUE", all files in the validate directory are run. The default is to run only files with a ".t" file extension. The default is FALSE. |
# List then perform all tests in the default test.loc directory validate.tests() validate()# Validate hypothesis testing and print all test expressions as # they are executed validate("hypotest", verbose = TRUE)
# Performs Analysis of Variance and Regression validation testing validate(c("anova", "regress.t"))
# Execute all validation tests, print text expressions that # failed and redirect output to the file all.out validate(outfile ="all.out")