failstop | R Documentation |
Generally, test result postprocessors are used by the E
function. failstop
calls str(r)
and throws an error if an expectation is not met, i.e.,
when r[["matches"]]
is of length 0.
failstop(r)
r |
object of class |
These are example postprocessors. You are encouraged to write your own ones that will suit your own needs. Explore their source code for some inspirations. It's an open source (and free!) project after all.
For failstop
, you can always create a function
str.realtest_result
implementing the pretty printing of an error
message.
Returns r
, invisibly.
The official online manual of realtest at https://realtest.gagolewski.com/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.