Back to directory
uptake avatar
uptake / pkgnet

pkgnet

R package for analyzing other R packages via graph representations of their dependencies

169

Stars

37

Forks

2

Watchers

NOASSERTION

License

pkgnet

CRAN_Status_Badge CRAN_Download_Badge GitHub Actions Build Status Appveyor Build status Lifecycle badge

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.

Releases

Jan 27, 2026

Download .zip

CHANGES

Replaced futile.logger with custom SimpleLogger R6 class implementation using only base R. This reduces external dependencies and improves maintainability. (#338) Updated minimum igraph versi...

NEW FEATURES

do.call with the function argument as string will now properly appear on the function reporter. Previously, this would show as a do.call node with a circular reference. (#302) LinkingTo...

Dec 23, 2021

version 0.4.2

Download .zip

NEW FEATURES

Node coloring in DependencyReporter (#243)

CHANGES

Removed LazyData field to accomodate change in CRAN policy. (#289)

BUGFIXES

Updated Codecov URL.

Apr 6, 2020

PKGNET VERSION 0.4.1

Download .zip

NEW FEATURES

CreatePackageReport() now outputs an object of new class PackageReport (instead of a list of reporters). This object will let you interactively manipulate the included reporter objects t...

Apr 6, 2019

version 0.4.0

Download .zip

NEW FEATURES

Objects of new DirectedGraph class now slot into the pkg_graph field of network reporters. These objects encapsulate the graph modeling of networks and have a more expressive set of meth...