Learn R Programming

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

  1. How it Works
  2. Installation
  3. Usage Examples
  4. How to Contribute

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.

Copy Link

Version

Install

install.packages('pkgnet')

Monthly Downloads

1,034

Version

0.6.0

License

BSD_3_clause + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Brian Burns

Last Published

January 27th, 2026

Functions in pkgnet (0.6.0)

InheritanceReporter

Class Inheritance Reporter
SummaryReporter

Package Summary Reporter
pkgnet-package

pkgnet : Network Analysis of R Packages
PackageReport

R6 Class Representing an R Package Report
SimpleLogger

Simple Logger Class
AbstractPackageReporter

Abstract Package Reporter
CreatePackageVignette

pkgnet Report as Vignette
DefaultReporters

Default Reporters
CreatePackageReport

pkgnet Analysis Report for an R package
FunctionReporter

Function Interdependency Reporter
DirectedGraph

Directed Graph Network Model
DependencyReporter

Recursive Package Dependency Reporter
AbstractGraph

Base class for Graphs
AbstractGraphReporter

Abstract Network Reporter Class
DirectedGraphMeasures

Measures for Directed Graph Class