plot_dependencies: Plot Dependencies.

Description Usage Arguments See Also Examples

View source: R/plot.R

Description

Plot the directed acyclic graph (DAG) of modules and dependencies.

Usage

1
2

Arguments

group

A character vector of module names (cf. define) to include as a subset of the graph nodes.

regexp

A regular expression. If not missing, the regular expression is used to filter the names of the modules to be plotted.

reserved

A flag. Should special modules with a reserved name be considered?

render_engine

A function. Rendering engine used to plot the dependencies.

...

Further arguments to be passed to render_engine.

See Also

define and reset.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
reset()
define("foo", NULL, function() NULL)
define("bar", list(m = "modulr"), function(m) NULL)
define("foobar", list(f = "foo", b = "bar"), function(f, b) NULL)
define("foobuzz", list(f = "foo", b = "buzz"), function(f, b) NULL)
define("fizz", list(f1 = "foobar", f2 = "foobuz"), function(f1, f2) NULL)
wait <- function() invisible(readline(prompt="Press [enter] to continue"))
plot_dependencies("foobar", reserved = FALSE)
## Not run: wait()
plot_dependencies("foobar")
## Not run: wait()
plot_dependencies(reserved = FALSE)
## Not run: wait()
plot_dependencies()

openscienceunil/modulr documentation built on May 3, 2019, 5:49 p.m.