Copy a simple orderly example for use in the docs. This function
should not form part of your workflow!
Usage
orderly_example(..., names = NULL, example = "demo", dest = NULL)
Value
Invisibly, the path to the example.
Arguments
...
Arguments passed through to orderly_init()
names
Optionally, names of the reports to copy. The
default is to copy all reports.
example
The name of the example to copy. Currently only
"simple" and "demo" are supported.
dest
The destination. By default we use
withr::local_tempdir() which will create a temporary directory
that will clean itself up. This is suitable for use from the
orderly examples, but you may prefer to provide your own path,
in which case the path must not already exist.