Visualize an abridged fast dependency graph.
Analyze the pipeline defined in the target script file
(default: _targets.R
)
and visualize the directed acyclic graph of targets
and global functions and objects.
tar_visnetwork( targets_only = FALSE, names = NULL, shortcut = FALSE, allow = NULL, exclude = ".Random.seed", outdated = TRUE, label = NULL, level_separation = NULL, degree_from = 1L, degree_to = 1L, reporter = targets::tar_config_get("reporter_outdated"), callr_function = callr::r, callr_arguments = targets::callr_args_default(callr_function), envir = parent.frame(), script = targets::tar_config_get("script"), store = targets::tar_config_get("store") )
targets_only |
Logical, whether to restrict the output to just targets
( |
names |
Names of targets. The graph visualization will operate
only on these targets (and unless |
shortcut |
Logical of length 1, how to interpret the |
allow |
Optional, define the set of allowable vertices in the graph.
Unlike |
exclude |
Optional, define the set of exclude vertices from the graph.
Unlike |
outdated |
Logical, whether to show colors to distinguish outdated
targets from up-to-date targets. (Global functions and objects
still show these colors.) Looking for outdated targets
takes a lot of time for large pipelines with lots of branches,
and setting |
label |
Character vector of one or more aesthetics to add to the
vertex labels. Can contain |
level_separation |
Numeric of length 1,
|
degree_from |
Integer of length 1. When you click on a node,
the graph highlights a neighborhood of that node. |
degree_to |
Integer of length 1. When you click on a node,
the graph highlights a neighborhood of that node. |
reporter |
Character of length 1, name of the reporter to user. Controls how messages are printed as targets are checked. Choices:
|
callr_function |
A function from |
callr_arguments |
A list of arguments to |
envir |
An environment, where to run the target R script
(default: The |
script |
Character of length 1, path to the
target script file. Defaults to |
store |
Character of length 1, path to the
|
A visNetwork
HTML widget object.
Other inspect:
tar_deps_raw()
,
tar_deps()
,
tar_glimpse()
,
tar_manifest()
,
tar_network()
,
tar_outdated()
,
tar_sitrep()
,
tar_validate()
if (identical(Sys.getenv("TAR_INTERACTIVE_EXAMPLES"), "true")) { tar_dir({ # tar_dir() runs code from a temporary directory. tar_script({ tar_option_set() list( tar_target(y1, 1 + 1), tar_target(y2, 1 + 1), tar_target(z, y1 + y2) ) }) tar_visnetwork() tar_visnetwork(allow = starts_with("y")) # see also all_of() }) }
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.