Learn R Programming

⚠️There's a newer version (0.2.0) of this package.Take me there.

flow

{flow} provides tools to visualize as flow diagrams the logic of functions, expressions or scripts and ease debugging.

Use cases are :

  • Deciphering other people’s code
  • Getting more comfortable with our own code by easing a visual understanding of its structure
  • Documentation
  • Debugging
  • Inspect unit test results
  • Providing a higher level view of an algorithm to collaborators
  • Education

Installation

Install from CRAN with:

install.packages("flow")

Or install development version from github:

remotes::install_github("moodymudskipper/flow")

Example

library(flow)

Using default nomnoml engine

flow_view(rle)

Using plantuml engine (make sure the {plantuml} package is installed).

flow_view(rle, engine = "plantuml")

Notes

Make sure to check the vignettes for a detailed breakdown of all features.

{flow} is built on top of Javier Luraschi’s {nomnoml} package, and Rainer M Krug ’s {plantuml} package, the latter only available from github at the moment.

Copy Link

Version

Install

install.packages('flow')

Monthly Downloads

389

Version

0.0.2

License

GPL-3

Maintainer

Antoine Fabri

Last Published

August 13th, 2021

Functions in flow (0.0.2)

flow_doc

Draw Flow Diagrams for an Entire Package
flow_draw

Draw Diagram From Debugger
flow_view

View function as flow chart
build_nomnoml_code

build nomnoml code from data
flow_debug

Debug With Flow Diagrams
flow_test

Build Report From Tests