Description Usage Arguments Value Examples
A generic testing function for applying passif/failif tests with V and EX bindings
to a checkr_result object. Unlike line_where()
, other line functions, no patterns
need to be provided. Just the passif/failif tests.
1 |
ex |
the checkr_result object with a single line of code |
... |
passif/failif tests to be applied |
message |
a character string to be used as the message for a failed result |
a checkr_result object reflecting the outcome of the tests
1 2 3 4 | code <- for_checkr(quote({x <- 3; y <- x^2 + 2}))
line2 <- line_where(code, insist(Z == "y"))
check(line2, passif(V == 11, "Right, eleven!"),
message = "Sorry. The result should be 11.")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.