View source: R/toolExpectTrue.R
toolExpectTrue | R Documentation |
tool function for status reporting. It performs a logical check
and returns either a message via toolStatusMessage
, that
the test was successful or that it failed.
toolExpectTrue(check, description, level = 0, falseStatus = "note")
check |
logical check to be run (has to be either TRUE or FALSE) |
description |
a description of the check |
level |
as the test result will be linked to a function call, the function
needs to know to which call it should be linked. by default ( |
falseStatus |
the type of status that is used when the check fails (typically "note" for a simple message or "warn" for a warning). |
Jan Philipp Dietrich
getMadratMessage
, toolExpectLessDiff
,
toolStatusMessage
, toolWriteMadratLog
toolExpectTrue(is.numeric(1), "data is numeric", level = -1)
getMadratMessage("status")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.