emm_example | R Documentation |
This function exists so as to provide cleaner-looking examples in
help files when it must be run conditionally on another package.
Typically we want to run the code (run = TRUE
is the default),
or otherwise just list it on the console (list = TRUE
).
emm_example(name, run = !list, list = FALSE, ...)
name |
Character name of file to run. We look for a file with this name
(with |
run |
Logical choosing whether or not to run the example code |
list |
Logical choosing whether or not to list the example code |
... |
Used only by the developer |
# List an example
emm_example("qdrg-biglm", list = TRUE)
# Run an example
if (require(biglm))
emm_example("qdrg-biglm")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.