Learn R Programming

flow (version 0.0.1)

flow_draw: Draw Diagram From Debugger

Description

flow_draw() should only be used in the debugger triggered by a call to flow_run(), or following a call to flow_debug() or flow_debugonce(). d is an active binding to flow_draw(), it means you can just type d (without parentheses) instead of flow_draw().

Usage

flow_draw()

d

Arguments

Details

To have the diagram redraw itself when entering each new block, set options(flow.auto_draw = TRUE), it's disabled by default because displaying or exporting the diagram sometimes takes a non-trivial amount of time.

d was designed to look like the other shortcuts detailed in ?browser, such as f, c etc... It differs however in that it can be overridden. For instance if the function uses a variable d or that a parent environment contains a variable d, flow::d won't be found. In that case you will have to use flow_draw().

If d or flow_draw() are called outside of the debugger they will return NULL silently.