testCore: Verification of the CORElearn installation

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Performs a partial check of the classification part of CORElearn.

Usage

1
2
3
4
5
6
7
8
testCoreClass(continue=TRUE)
testCoreAttrEval(continue=TRUE)
testCoreReg(continue=TRUE)
testCoreOrdEval(continue=TRUE)
testCoreNA(continue=TRUE)
testCoreRPORT(continue=TRUE)
testCoreRand(continue=TRUE)
allTests(continue=TRUE, timed=FALSE)

Arguments

continue

Logical. Whether a warning or an error should be generated when a test fails.

timed

Logical. Whether the time usage should be printed.

Details

Functions testCoreClass(), testCoreAttrEval(), testCoreReg() evaluate 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 used for debugging.

Function allTests() calls all the above functions and prints a table of the results. If an error is found, a more detailed information is printed and the continuation of the tests depends on the argument continue.

Value

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

Author(s)

Marko Robnik-Sikonja, Petr Savicky

See Also

CORElearn.

Examples

1
allTests() # run all tests and generate an error, if any of the tests fails

CORElearn documentation built on May 29, 2017, 7:17 p.m.

Search within the CORElearn package
Search all R packages, documentation and source code