Learn R Programming

Introduction to pkgdiff

Open Source languages have a reputation for being unstable. Package developers can remove a function or parameter at any time, potentially breaking thousands of programs that were using that function. The situation is quite different from languages like SAS or C, which are famous for their stability and backward compatibility.

The purpose of pkgdiff is to offer an objective approach for anticipating and avoiding breaking changes in R. It gives you a tool to evaluate contributed packages in terms of overall stability, and provides a way to identify and plan for future breakages.

The hope is that organizations will have a better way of selecting stable packages for their programmers, and programmers will cultivate higher standards for the packages they use. The end goal is to enable R's use in large scale, production environments, reduce maintenance costs, and increased confidence in the programs we write with R.

For an overview of the package, see the package web site here, or run the package vignette using the code vignette("pkgdiff").

Installation

To install pkgdiff, run the following command from your R console:

install.packages("pkgdiff")

Then put the following line at the top of your script:

library(pkgdiff)

The pkgdiff package will then be loaded, and available for use in your project.

For examples and usage information, please visit the pkgdiff documentation site here. These examples will demonstrate the extraordinary usefulness of the comparison functions, and give you many ideas on how and where to use the pkgdiff package.

Getting Help

If you need help with pkgdiff, the best place to turn to is the pkgdiff web site. This web site offers many examples, and full documentation on every function.

If you want to look at the code for pkgdiff, visit the github page here.

If you encounter a bug or have a feature request, please submit your issue here

Copy Link

Version

Install

install.packages('pkgdiff')

Monthly Downloads

133

Version

0.2.1

License

CC0

Issues

Pull Requests

Stars

Forks

Maintainer

David Bosak

Last Published

July 12th, 2025

Functions in pkgdiff (0.2.1)

print.rbreak

Print a Repo Breakages Object
print.rstability

Print a Repo Stability Object
pkgdiff

Identify Differences Between Package Versions
pkg_repo

Retrieve Package Versions from a Repository
pkg_versions

Retrieves All Versions of a Package
pkg_info

Get Information for a Package
print.pcache

Print a Package Cache Object
print.pdiff_score

Print a Stability Score Object
print.pdiff

Print a Package Difference Object
pkg_cache

Queries the Package Cache
pkg_diff

Compare Package Versions
pkg_stability

Calculate Stability Score for a Package
print.prepo

Print a Package Repo Object
repo_stability

Generate Stability Scores for a Repository
print.pinfo

Print a Package Info Object
repo_breakages

Identify Breakages for a Repository