Skip to content

pkgdiff

Identifies Package Differences

v1.0.3 · May 10, 2026 · CC0

Description

Identifies differences between versions of a package. Specifically, the functions help determine if there are breaking changes from one package version to the next. The package also includes a stability assessment, to help you determine the overall stability of a package, or even an entire repository.

Downloads

CRAN

534

Last 30 days

7204th

1.6K

Last 90 days

3.6K

Last year

Trend: +3.9% (30d vs prior 30d)

r2u CRAN

0

Last 30 days

33

Last 90 days

127

Last year

Trend: -100% (30d vs prior 30d)

autoCRAN

8

Last 7 days

13

Last 30 days

2

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jul 4, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jul 3, 2026
ERROR r-devel-windows-x86_64

examples

Running examples in 'pkgdiff-Ex.R' failed
The error most likely occurred in:

> ### Name: pkg_diff
> ### Title: Compare Package Versions
> ### Aliases: pkg_diff
> 
> ### ** Examples
> 
> # View package stability
> pkg_stability("rsample")
# A stabili
...[truncated]...
 in readRDS(con) :
  URL 'https://bioconductor.statistik.tu-dortmund.de/cran/web/packages/packages.rds': Timeout of 60 seconds was reached
Error in if (nrow(lrw) == 0) { : argument is of length zero
Calls: pkg_diff -> get_latest_data
Execution halted
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 2, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 1, 2026
ERROR r-devel-linux-x86_64-debian-gcc

examples

Running examples in ‘pkgdiff-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: pkg_info
> ### Title: Get Information for a Package
> ### Aliases: pkg_info
> 
> ### ** Examples
> 
> 
...[truncated]...
mory(url, handle = handle) : 
  Timeout was reached [cranlogs.r-pkg.org]:
Operation too slow. Less than 1 bytes/sec transferred the last 600 seconds
Calls: pkg_info ... request_fetch.write_memory -> <Anonymous> -> raise_libcurl_error
Execution halted
OK 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
WARNING 13 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE Apr 24, 2026
WARNING r-devel-linux-x86_64-debian-gcc

for code/documentation mismatches

Error: package or namespace load failed for ‘pkgdiff’:
 .onAttach failed in attachNamespace() for 'pkgdiff', details:
  call: github_packages()
  error: Pkgdiff GitHub package list not available.
Call sequence:
6: stop(msg, call. = FALSE, domain = NA
...[truncated]...
Message(e))
       if (logical.return && !quietly) 
           message(paste("Error:", msg), domain = NA)
       else stop(msg, call. = FALSE, domain = NA)
   })
1: library(package, lib.loc = lib.loc, character.only = TRUE, verbose =
Execution halted
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 22, 2026
ERROR r-devel-windows-x86_64

examples

Running examples in 'pkgdiff-Ex.R' failed
The error most likely occurred in:

> ### Name: pkg_info
> ### Title: Get Information for a Package
> ### Aliases: pkg_info
> 
> ### ** Examples
> 
> # View package info
> pkg_info("glue")
# A package info ob
...[truncated]...
ository: CRAN
> # - Cached: TRUE
> # - Functions: 24
> 
> # Get info object
> res <- pkg_info("glue")
Error in github_package(pkg) : 
  Pkgdiff GitHub package 'glue' not available.
Calls: pkg_info -> get_info_github -> github_package
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 20, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 19, 2026
ERROR r-devel-linux-x86_64-debian-gcc

examples

Running examples in ‘pkgdiff-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: pkg_info
> ### Title: Get Information for a Package
> ### Aliases: pkg_info
> 
> ### ** Examples
> 
> 
...[truncated]...
ub package 'glue' not available.
Calls: pkg_info -> get_info_github -> github_package
Execution halted
Examples with CPU (user + system) or elapsed time > 5s
           user system elapsed
pkg_diff  0.529  0.072  10.112
pkg_cache 0.206  0.037  12.129
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 26, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 16, 2026
ERROR r-devel-linux-x86_64-fedora-clang

tests

Running ‘testthat.R’ [37s/252s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional
...[truncated]...
months = months)
   3.     └─pkgdiff:::get_github_data(pkg, releases, months)
   4.       ├─base::get(load(gzcon(murl)))
   5.       └─base::load(gzcon(murl))
  
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 268 ]
  Error:
  ! Test failures.
  Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

10,028

Files

70

Compiled share

0%

Has compiled src

No

Language breakdown

R 4,514 (45%)Tests 2,791 (27.8%)Docs 1,518 (15.1%)Vignettes 1,205 (12%)

API

Exported functions

9

Internal functions

58

Recent export changes

v1.0.0+1 pkg_summary

Testing & CI

Has tests

Yes

Test-to-code ratio

0.75

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.0.0

System requirements

C++ standard

License

CC0

License flags

SPDX valid, not OSI

History

Versions

7

First release

2025-03-13

Latest release

2026-05-10

Avg cadence

68 days

Cold removal rate

Dep drift

2

LOC over versions

v0.1.9: 8,711 LOCv0.2.0: 8,793 LOCv0.2.1: 8,801 LOCv1.0.0: 9,740 LOCv1.0.1: 9,751 LOCv1.0.2: 10,022 LOCv1.0.3: 10,028 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies rvest common crayon cranlogs pkgdiff

Version History

8 tracked
updated 1.0.3 ← 1.0.2 diff May 10, 2026
updated 1.0.2 ← 1.0.1 diff Mar 26, 2026
new 1.0.1 Mar 10, 2026
updated 1.0.1 ← 1.0.0 diff Dec 15, 2025
updated 1.0.0 ← 0.2.1 diff Nov 23, 2025
updated 0.2.1 ← 0.2.0 diff Jul 11, 2025
updated 0.2.0 ← 0.1.9 diff Apr 12, 2025
new 0.1.9 Mar 12, 2025