View source: R/examples_helpers.R
| run_example | R Documentation |
Executes an example script bundled in the package inst/examples/ folder.
run_example(example_name, echo = TRUE)
example_name |
Character scalar with the example filename (e.g. |
echo |
Logical; print code as it runs (default |
Invisibly returns NULL. Runs the example for its side effects.
# Example (requires a real file under inst/examples):
# run_example("basic.R")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.