Use tar_watch_ui()
and tar_watch_server()
to include tar_watch()
as a Shiny module in an app.
tar_watch_ui(
id,
label = "tar_watch_label",
seconds = 10,
seconds_min = 1,
seconds_max = 60,
seconds_step = 1,
targets_only = FALSE,
outdated = TRUE,
label_tar_visnetwork = NULL,
level_separation = 150,
height = "650px"
)
Character of length 1, ID corresponding to the UI function of the module.
Label for the module.
Numeric of length 1, default number of seconds between refreshes of the graph. Can be changed in the app controls.
Numeric of length 1, lower bound of seconds
in the app controls.
Numeric of length 1, upper bound of seconds
in the app controls.
Numeric of length 1, step size of seconds
in the app controls.
Logical, whether to restrict the output to just targets
(FALSE
) or to also include imported global functions and objects.
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 outdated
to FALSE
is a nice way to speed up the graph
if you only want to see dependency relationships and build progress.
Character vector, label
argument to
tar_visnetwork()
.
Numeric of length 1,
levelSeparation
argument of visNetwork::visHierarchicalLayout()
.
Controls the distance between hierarchical levels.
Consider changing the value if the aspect ratio of the graph
is far from 1. If level_separation
is NULL
,
the levelSeparation
argument of visHierarchicalLayout()
defaults to 150
.
Character of length 1,
height of the visNetwork
widget and branches table.
A Shiny module UI.
Other progress:
tar_poll()
,
tar_progress_branches()
,
tar_progress_summary()
,
tar_progress()
,
tar_watch_server()
,
tar_watch()