Tools from the domain of graph theory can be used to quantify the complexity and vulnerability to failure of a software package. That is the guiding philosophy of this package. 'pkgnet' provides tools to analyze the dependencies between functions in an R package and between its imported packages.
pkgnet is an R library designed for the analysis of R libraries! The goal of the package is to build a graph representation of a package and its dependencies to inform a variety of activities, including:
The core functionality of this package is the
This package is now available from CRAN!
Try it out!
library(pkgnet) result <- CreatePackageReport('ggplot2')
To report bugs, request features, or ask questions about the structure of the code, please open an issue.
This is a fairly new project and, as the version number indicates, should be regarded as a work in progress.
InheritanceReporter, a reporter for R6, Reference, and S4 class inheritance relationships within a package. (#14, #129)
grep("^layout_\\S", getNamespaceExports("igraph"), value = TRUE)to see valid options. (#143)
FunctionReporternow utilizes graphopt layout by default. (#143)
FunctionReporternow supports non-exported functions and R6 class methods. (#123, #128)
milnecreated for unit testing of
InheritanceReporterand R6 method support in
FunctionReporter. (#128, #129)