Description
Graph the Relationship Between Functions in an R Package.
Description
It is often useful when developing an R package to track the relationship between functions in order to appropriately test and track changes. This package generates a graph of the relationship between all R functions in a package. It can also be used on any directory containing .R files which can be very useful for 'shiny' apps or other non-package workflows.
README.md
pkgGraphR
Install
devtools::install_gitlab("doliv071/pkggraphr")
Usage
library("pkgGraphR")
test <- buildPackageGraph("~/some/rpackage/")
plotPackageGraph(test, "grViz")
plotPackageGraph(test, "mermaid")
plotPackageGraph(test, "ggraph")
Known Issues
- When function assignment occurs within another function, this relationship is missed.
- Functions that are exclusively used in conjunction with logic operators are missed (e.g.
is.empty
function only called with!
a la!is.empty(var)
).
Notes
This package is pre-development stage. Please feel free to report issues when it fails (it will)