Description Usage Arguments Details
View source: R/print_function_contents.R
Many checkr statements will be packaged into functions with just one input: USER_CODE
.
In narrative documentation for checkr, it can be nice to print these with lines numbered, so
that the narrative can refer to them. There's no reason to use this function in a learnr tutorial,
unless that tutorial is about checkr itself.
1 | print_function_contents(fun, just_the_body = TRUE, from_file = NULL)
|
fun |
Name of the function, e.g. |
just_the_body |
If |
from_file |
name of a .R file. If the function resides in a .R file, giving |
Won't work for primitives, but then you'll never be writing primitives.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.