powered by
Executes an example script bundled in the package inst/examples/ folder.
inst/examples/
run_example(example_name, echo = TRUE)
Invisibly returns NULL. Runs the example for its side effects.
NULL
Character scalar with the example filename (e.g. "basic.R").
"basic.R"
Logical; print code as it runs (default TRUE).
TRUE
if (FALSE) { # interactive() # \donttest{ # Example (requires a real file under inst/examples): # run_example("basic.R") # } }
Run the code above in your browser using DataLab