R/check.R
Possible obvious errors include circular dependencies and missing input files.
check_plan(plan = read_drake_plan(), targets = drake::possible_targets(plan), envir = parent.frame(), cache = drake::get_cache(verbose = verbose), verbose = drake::default_verbose(), jobs = 1)
plan | workflow plan data frame, possibly from
|
---|---|
targets | character vector of targets to make |
envir | environment containing user-defined functions |
cache | optional drake cache. See |
verbose | logical or numeric, control printing to the console.
Use
|
jobs | number of jobs/workers for parallel processing |
Invisibly return plan
.
ink{drake_plan}
, make()
# NOT RUN { test_with_dir("Quarantine side effects.", { load_basic_example() # Get the code with drake_example("basic"). check_plan(my_plan) # Check the workflow plan dataframe for obvious errors. unlink("report.Rmd") # Remove an import file mentioned in the plan. # If you un-suppress the warnings, check_plan() # will tell you that 'report.Rmd' is missing. suppressWarnings(check_plan(my_plan)) }) # }