Learn R Programming

drake (version 5.0.0)

read_drake_graph: Read the igraph dependency network from your last attempted call to make().

Description

For more user-friendly graphing utilities, see vis_drake_graph() and related functions.

Usage

read_drake_graph(path = getwd(), search = TRUE, cache = NULL,
  verbose = 1, ...)

Arguments

path

Root directory of the drake project, or if search is TRUE, either the project root or a subdirectory of the project.

search

logical. If TRUE, search parent directories to find the nearest drake cache. Otherwise, look in the current working directory only.

cache

optional drake cache. See codenew_cache(). If cache is supplied, the path and search arguments are ignored.

verbose

logical, whether to print console messages

...

arguments to visNetwork() via vis_drake_graph()

Value

An igraph object representing the dependency network of the workflow.

See Also

vis_drake_graph, read_drake_config

Examples

Run this code
# NOT RUN {
test_with_dir("Quarantine side effects.", {
load_basic_example() # Get the code with drake_example("basic").
make(my_plan) # Run the project, build the targets.
# Retrieve the igraph network from the cache.
g <- read_drake_graph()
class(g) # "igraph"
})
# }

Run the code above in your browser using DataLab