Description Usage Arguments Value Examples
The tests are written in terms of pronouns
F the function at the highest level (but with assignment removed)
Z the name being bound to the line's value by assignment. ("" if no assignment.)
V the value produced by the line.
EX the expression itself (but with assignment removed)
Grab the lines after a specified line (which is included)
1 2 3 | line_where(ex, ..., message = "")
lines_after(ex, ..., message = "")
|
ex |
expressions as made by for_checkr() |
... |
tests specifying the kind of line we want |
message |
A character string to be included as the message in the result. This can have moustaches written in terms of F, Z, V, or EX |
A checkr test result. By default, if the line is found, the result is an "OK", setting the stage for further testing. If no matching line is found, the result is a fail.
1 2 | ex <- for_checkr(quote({x <- 2; y <- x^3; z <- y + x}))
line_where(ex, F == "^")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.