# NOT RUN {
path <- orderly::orderly_example("minimal")
p <- orderly::orderly_test_start("example", root = path)
# The data in the orderly example is now available to use
dat
# Check to see which artefacts have been created so far:
orderly::orderly_test_check(p)
# Manually the code that this report has in its script
png(file.path(p, "mygraph.png"))
barplot(setNames(dat$number, dat$name), las = 2)
dev.off()
# We now confirm that the artefact has been created:
orderly::orderly_test_check(p)
# The function orderly_data does all the preparation work that
# orderly_run does, but does not run the report; instead it
# returns the created environment with all the data and parameters
# set.
path <- orderly::orderly_example("demo")
env <- orderly::orderly_data("other", list(nmin = 0.2), root = path)
ls(env)
env$nmin
env$extract
# }
Run the code above in your browser using DataCamp Workspace