flow_view_uses: Show graph of callers of a function

View source: R/13_flow_view_uses.R

flow_view_usesR Documentation

Show graph of callers of a function

Description

Experimental function that displays for a given object or function all functions that call it directly or indirectly.

Usage

flow_view_uses(x, pkg = NULL, out = NULL)

Arguments

x

An object

pkg

A package or environment to fetch callers from, by default fun's environment

out

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.

Details

The function is not very robust yet, but already useful for many usecases.

Value

flow_view_uses() returns a "flow_diagram" object by default, and the output path invisibly if out is not NULL (called for side effects).

Examples

flow_view_uses(flow_run)

flow documentation built on June 7, 2023, 5:17 p.m.