dev_example | R Documentation |
dev_example
is a replacement for example
. run_example
is a low-level function that takes a path to an Rd file.
dev_example(topic, quiet = FALSE)
run_example(
path,
run_donttest = FALSE,
run_dontrun = FALSE,
env = new.env(parent = globalenv()),
quiet = FALSE,
macros = NULL,
run,
test
)
topic |
Name or topic (or name of Rd) file to run examples for |
quiet |
If |
path |
Path to |
run_donttest |
if |
run_dontrun |
if |
env |
Environment in which code will be run. |
macros |
Custom macros to use to parse the |
run , test |
Deprecated, see |
## Not run:
# Runs installed example:
library("ggplot2")
example("ggplot")
# Runs development example:
dev_example("ggplot")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.