dot-log: Logging (printing) the results of test cases

.logR Documentation

Logging (printing) the results of test cases

Description

Logging (printing) the results of test cases

Usage

.log(info, pass, sep = "...", spaceLine = FALSE)

Arguments

info

character; description of the test case.

pass

boolean; was the test passed?

sep

character (default="..."); separates description from result.

spaceLine

boolean (default=FALSE); should a blank line be added after.

Value

NULL, only prints the log

Note

Internal function only for convenience

Examples

testPassed <- TRUE
testFailed <- FALSE
## Not run: 
.log('testing something', testPassed)
#testing something...OK
.log('testing other stuff', testFailed, spaceLine=TRUE)
#testing other stuff...FAIL
#
.log('testing more', testPassed, " ", TRUE)
#testing more OK

## End(Not run)

frankkramer-lab/RCX documentation built on Feb. 4, 2023, 5:12 p.m.