# NOT RUN {
# The orderly demo, with lots of potential reports:
path <- orderly::orderly_example("demo")
# Reports that _could_ be run:
orderly::orderly_list(path)
# Run a report twice:
id1 <- orderly::orderly_run("minimal", root = path)
id2 <- orderly::orderly_run("minimal", root = path)
# We can see both drafts:
orderly::orderly_list_drafts(path)
# Nothing is in the archive:
orderly::orderly_list_archive(path)
# Commit a report:
orderly::orderly_commit(id2, root = path)
# Only one draft now
orderly::orderly_list_drafts(path)
# And the second report is in the archive:
orderly::orderly_list_archive(path)
# }
Run the code above in your browser using DataLab