Learn R Programming

drake (version 4.2.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, return_config = TRUE) in that the graph includes both the targets and the imports, not just the imports.

Usage

config(plan, targets = drake::possible_targets(plan),
  envir = parent.frame(), verbose = TRUE, cache = NULL,
  parallelism = drake::default_parallelism(), jobs = 1,
  packages = (.packages()), prework = character(0),
  prepend = character(0), command = "make",
  args = drake::default_system2_args(jobs = jobs, verbose = verbose))

Arguments

plan

same as for make

targets

same as for make

envir

same as for make

verbose

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

See Also

plan, 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