| .log | R Documentation |
Logging (printing) the results of test cases
.log(info, pass, sep = "...", spaceLine = FALSE)
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. |
NULL, only prints the log
Internal function only for convenience
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.