powered by
dev_example is a replacement for example. run_example is a low-level function that takes a path to an Rd file.
dev_example
example
run_example
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 )
run_example( path, run_donttest = FALSE, run_dontrun = FALSE, env = new.env(parent = globalenv()), quiet = FALSE, macros = NULL, run, test )
Name or topic (or name of Rd) file to run examples for
If TRUE, does not echo code to console.
TRUE
Path to .Rd file
.Rd
if TRUE, do run \donttest sections in the Rd files.
\donttest
if TRUE, do run \dontrun sections in the Rd files.
\dontrun
Environment in which code will be run.
Custom macros to use to parse the .Rd file. See the macros argument of tools::parse_Rd(). If NULL, then the tools::Rd2ex() (and tools::parse_Rd()) default is used.
macros
tools::parse_Rd()
NULL
tools::Rd2ex()
Deprecated, see run_dontrun and run_donttest above.
run_dontrun
run_donttest
if (FALSE) { # Runs installed example: library("ggplot2") example("ggplot") # Runs develoment example: dev_example("ggplot") }
Run the code above in your browser using DataLab