Learn R Programming

CORElearn (version 0.9.29)

testCore: Verification of the CORElearn installation

Description

Performs a partial check of the classification part of CORElearn.

Usage

testCoreClass(verbose=1)
testCoreAttrEval(verbose=1)
testCoreReg(verbose=1)
testCoreOrdEval(verbose=1)
testCoreNA(verbose=1)
testCoreRPORT(verbose=1)
testCoreRand(verbose=1)
allTests(verbose=1, timed=FALSE)

Arguments

verbose
An integer determining the level of verbosity. If 0, an error is generated, if any of the tests fails. Otherwise, only the result of the test is printed.
timed
Logical. Whether the time usage should be printed.

Value

  • The functions have no output value. The result OK or FAILED is printed.

Details

Functions testCoreClass(), testCoreAttrEval(), testCoreReg() run functions CoreModel(), predict.CoreModel(), modelEval(), and attrEval() and perform a partial check of the obtained results.

Function testNA() performs a test of consistency NA and NaN between R and CORElearn.

Functions testCoreRPORT() and testCoreRand() test, whether the R_PORT directive is defined in C code and whether R random number generator is used. These tests are mostly for debugging.

Function allTests() calls all the above functions with verbose=0 and prints a table of the results.

See Also

CORElearn.

Examples

Run this code
allTests(verbose=0) # generate an error, if any of the tests fails

Run the code above in your browser using DataLab