Unlike deps_code()
, deps_targets()
just lists
the jobs that lie upstream of the targets
on the workflow
graph, and file_out()
files are not included.
deps_targets(targets, config = read_drake_config(), reverse = FALSE)
a character vector of target names
an output list from drake_config()
logical, whether to compute reverse dependencies (targets immediately downstream) instead of ordinary dependencies.
A character vector, names of dependencies. Files wrapped in escaped double quotes. The other names listed are functions or generic R objects.
# NOT RUN {
test_with_dir("Quarantine side effects.", {
load_mtcars_example() # Get the code with drake_example("mtcars").
# Dependencies of the knitr-generated targets like 'report.md'
# include targets/imports referenced with `readd()` or `loadd()`.
config <- drake_config(my_plan)
deps_targets(file_store("report.md"), config = config)
deps_targets("regression1_small", config = config)
deps_targets(c("small", "large"), config = config, reverse = TRUE)
})
# }
Run the code above in your browser using DataLab