Learn R Programming

drake (version 4.2.0)

read_graph: Function read_graph

Description

Read the igraph-style dependency graph of your targets from your last attempted call to make(). For better graphing utilities, see plot_graph() and related functions.

Usage

read_graph(path = getwd(), search = TRUE, cache = NULL, ...)

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.

...

arguments to visNetwork() via plot_graph()

Value

either a plot or an igraph object, depending on plot

See Also

plot_graph, read_config

Examples

Run this code
# NOT RUN {
load_basic_example()
make(my_plan)
g <- read_graph(plot = FALSE)
class(g)
read_graph() # Actually plot the graph as an interactive visNetwork widget.
# }

Run the code above in your browser using DataLab