| orderly_new | R Documentation |
Create a new empty report.
orderly_new(name, template = NULL, force = FALSE, root = NULL)
name |
The name of the report |
template |
The template to use. The only acceptable values
for now are |
force |
Create an orderly file - |
root |
The path to the root directory, or |
Nothing, called for its side effects only
path <- withr::local_tempdir()
# Initialise a new repository, setting an option:
orderly_init(path)
# Create a new report 'myreport' in this root:
orderly_new("myreport", root = path)
# We now see:
fs::dir_tree(path, all = TRUE)
# By default, the new path will contain some hints, you can
# customise this by writing a template
cli::cli_code(readLines(file.path(path, "src", "myreport", "myreport.R")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.