Description
Get Network Representation of an R Package.
Description
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. See the pkgnet website for vignettes and other supplementary information.
README.md
pkgnet
Introduction
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:
- prioritizing functions to unit test based on their centrality
- examining the recursive dependencies you are taking on by using a given package
- exploring the structure of a new package provided by a coworker or downloaded from the internet
Table of contents
How it Works
The core functionality of this package is the CreatePackageReport
function.
Installation
This package is now available from CRAN!
install.packages('pkgnet')
Usage Examples
Try it out!
library(pkgnet)
result <- CreatePackageReport('ggplot2')
How to Contribute
To report bugs, request features, or ask questions about the structure of the code, please open an issue.
If you'd like to contribute to the project, please open a pull request. PRs should follow the project's contribution guidelines.