Builds a reactive dependency graph from the reactive log.

getReactGraph(session = shiny::getDefaultReactiveDomain())

Arguments

session

A Shiny session object or session ID. Defaults to the current session. If NULL or no current session, the most recently active session is used.

Value

A reactive graph object for the Shiny session.

Details

Reactive event logging must be enabled to build graphs: options(shiny.reactlog = TRUE) or enableReactLog()

To clear the reactive graph, start a new R session or call clearReactLog().

Note

A reactive graph object is created when getReactGraph() is first called for a Shiny user session. On subsequent calls to getReactGraph(), the same graph is retrieved and automatically updated rather than being completely rebuilt.