dev_example
is a replacement for example
. run_example
is a low-level function that takes a path to an Rd file.
Arguments
- topic
Name or topic (or name of Rd) file to run examples for
- quiet
If
TRUE
, does not echo code to console.- path
Path to
.Rd
file- run_donttest
if
TRUE
, do run\donttest
sections in the Rd files.- run_dontrun
if
TRUE
, do run\dontrun
sections in the Rd files.- env
Environment in which code will be run.
- macros
Custom macros to use to parse the
.Rd
file. See themacros
argument oftools::parse_Rd()
. IfNULL
, then thetools::Rd2ex()
(andtools::parse_Rd()
) default is used.- run, test
Deprecated, see
run_dontrun
andrun_donttest
above.