Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

View and Browse Code Using Flow Diagrams

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
NotificationsYou must be signed in to change notification settings

moodymudskipper/flow

Repository files navigation

R-CMD-check

flow

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

Use cases are :

  • Deciphering other people’s code
  • Getting more comfortable with our own code by easing a visualunderstanding 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)

nomnoml

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

flow_view(rle,engine="plantuml")

plantuml

Additional functions

  • flow_run() to display not only the diagram, but the logical pathtaken by a specific call
  • flow_compare_runs() display the logical path of 2 calls to see wherethey diverge
  • flow_debug()/flow_undebug() to use basically useflow_run() on afunction wherever it’s called
  • flow_view_vars() to display the dependencies between variables in afunction
  • flow_view_deps() to display recursively all the functions that yourfunction calls
  • flow_view_uses() to display recursively all the functions that callyour function
  • flow_view_shiny() to display the modular structure of your shiny app
  • flow_view_source_calls() to display dependency tree of scriptssourcing each other
  • flow_doc() to build a package’s documentation using flow diagrams
  • flow_test() to show what happens in your unit tests
  • flow_embed() to embed diagrams in your documentation.

See more in vignettes.

Notes

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

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

About

View and Browse Code Using Flow Diagrams

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published

Contributors7

Languages


[8]ページ先頭

©2009-2025 Movatter.jp