Learn R Programming

drake (version 5.0.0)

check_plan: Check a workflow plan data frame for obvious errors.

Description

Possible obvious errors include circular dependencies and missing input files.

Usage

check_plan(plan = drake_plan(), targets = drake::possible_targets(plan),
  envir = parent.frame(), cache = drake::get_cache(verbose = verbose),
  verbose = TRUE, jobs = 1)

Arguments

plan

workflow plan data frame, possibly from drake_plan().

targets

character vector of targets to make

envir

environment containing user-defined functions

cache

optional drake cache. See new_cache()

verbose

same as for make()

jobs

number of jobs/workers for light parallelism

Value

Invisibly return plan.

See Also

ink{drake_plan}, make

Examples

Run this code
# 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))
})
# }

Run the code above in your browser using DataLab