Copy a simple orderly example for use in the docs. This function should not form part of your workflow!
Arguments
- name
The name of the example to copy. Currently only "default" is supported.
- ...
Arguments passed through to
orderly_init()
- dest
The destination. By default we use
withr::local_tempfile()
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. The path must not already exist.
Examples
path <- orderly2::orderly_example("default")
#> ✔ Created orderly root at '/tmp/Rtmpl7F6gT/orderly2_ex_1d2c4b66aac0'
orderly2::orderly_list_src(root = path)
#> [1] "data"
fs::dir_delete(path)