Description Usage Arguments Details Value
Include the output of code in your documentation automatically
1 | include_roxygen_example(example_string)
|
example_string |
the string to be interpreted as R code |
This function takes a string that can be interpreted as r code and returns it formatted as a roxygen exmaple, including tags and output commented out.
It is meant to be used with the evalRd tag as ‘#’ @evalRd include_roxygen_example("print('a')")'
a string that can be interpreted literally as a roxygen comment
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.