Learn R Programming

R.utils (version 1.9.7)

check.Assert: Static method asserting that a generic condition is true

Description

Static method asserting that a generic condition is true.

Usage

Assert$check(condition, message=NULL, ...)

Arguments

condition
A condition that should return TRUE if ok, or something else if not.
message
The error message to be reported on failure. If NULL, a message is automatically created.
...
Not used.

Value

  • Returns (invisibly) TRUE, or throws an exception.

synopsis

check.Assert(static, condition, message=NULL, ...)

See Also

For more information see Assert.