Learn R Programming

drake (version 4.4.0)

config: Function config

Description

Compute the internal runtime parameter list of make(). This could save time if you are planning multiple function calls of functions like outdated() or plot_graph(). Drake needs to import and cache files and objects to compute the configuration list, which in turn supports user-side functions to help with visualization and parallelism. The result differs from make(..., imports_only = TRUE) in that the graph includes both the targets and the imports, not just the imports.

Usage

config(plan = workplan(), targets = drake::possible_targets(plan),
  envir = parent.frame(), verbose = TRUE, hook = function(code) {    
  force(code) }, cache = drake::get_cache(verbose = verbose),
  parallelism = drake::default_parallelism(), jobs = 1,
  packages = rev(.packages()), prework = character(0),
  prepend = character(0), command = drake::default_Makefile_command(),
  args = drake::default_Makefile_args(jobs = jobs, verbose = verbose),
  recipe_command = drake::default_recipe_command(), timeout = Inf,
  cpu = timeout, elapsed = timeout, retries = 0, clear_progress = FALSE,
  graph = NULL)

Arguments

plan

same as for make

targets

same as for make

envir

same as for make

verbose

same as for make

hook

same as for make

cache

same as for make

parallelism

same as for make

jobs

same as for make

packages

same as for make

prework

same as for make

prepend

same as for make

command

same as for make

args

same as for make

recipe_command

same as for make

timeout

same as for make

cpu

same as for make

elapsed

same as for make

retries

same as for make

clear_progress

logical, whether to clear the cached progress of the targets readable by

graph

igraph object representing the workflow plan network progress()

See Also

workplan, make, plot_graph

Examples

Run this code
# NOT RUN {
load_basic_example()
con <- config(my_plan)
outdated(my_plan, config = con)
missed(my_plan, config = con)
max_useful_jobs(my_plan, config = con)
plot_graph(my_plan, config = con)
dataframes_graph(my_plan, config = con)
# }

Run the code above in your browser using DataLab