# NOT RUN {
path <- orderly::orderly_example("demo")
# This example uses orderly_run_info within its script, saving the
# output to "output.rds"
readLines(file.path(path, "src", "use_dependency", "script.R"))
# Run the dependency:
id <- orderly::orderly_run("other", list(nmin = 0), root = path)
orderly::orderly_commit(id, root = path)
# Then the report
id <- orderly::orderly_run("use_dependency", root = path)
# This is the contents:
readRDS(file.path(path, "draft", "use_dependency", id, "info.rds"))
# }
Run the code above in your browser using DataLab