Description Usage Arguments Details See Also Examples
Code submissions may consist of one or more lines. Each of those lines may be
written as a magrittr chain. line_chaining()
will extract a single line that is a chain.
1 | line_chaining(ex, n = 1L, message = "Didn't find a chained command.")
|
ex |
A checkr_result object such as produced by |
n |
An integer indicating which line that is a chain is desired: first, second, ... |
message |
A message to include in a failed result. |
A chain is itself equivalent to multiple lines. If you are interested in
exploring within a chain, you can expand the chain into individual lines. See expand_chains()
.
expand_chains, expand_all_chains
1 2 3 | code <- for_checkr(quote({x <- 3 %>% sin() %>% cos(); x %>% sqrt() %>% log()}))
line_chaining(code)
line_chaining(code, n = 2L)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.