flow_view_deps(
fun,
max_depth = Inf,
trim = NULL,
promote = NULL,
demote = NULL,
hide = NULL,
show_imports = c("functions", "packages", "none"),
out = NULL,
lines = TRUE,
include_formals = TRUE
)
A function, can be of the form fun
, pkg::fun
, pkg:::fun
,
if in the form fun
, the binding should be located in a package namespace
or the global environment. It can also be a named list of functions, such as
one you'd create with dplyr::lst()
, for instance lst(fun1, pkg::fun2)
.
An integer, the maximum depth to display
A vector or list of function names where the recursion will stop
A vector or list of external functions to show as internal functions
A vector or list of internal functions to show as external functions
A vector or list of internal functions to completely remove from the chart
Whether to show imported "functions", only "packages", or "none"
a path to save the diagram to. Special values "html", "htm", "png", "pdf", "jpg" and "jpeg" can be used to export the object to a temp file of the relevant format and open it, if a regular path is used the format will be guessed from the extension. Other special values "data" and "code" can be used for respectively retrieving the graph data as a data frame and the diagram code.
Whether to show the number of lines of code next to the function name
Whether to fetch dependencies in the default values of the function's arguments
flow_view_deps()
returns a "flow_diagram"
object by default, and the output path invisibly if out
is not
NULL
(called for side effects).
Exported functions are shown in blue, unexported functions are shown in yellow.
flow_view_deps(flow_view_deps)