Learn R Programming

pkgdiff (version 0.2.1)

print.pcache: Print a Package Cache Object

Description

Print routine for a package cache object of class "pcache".

Usage

# S3 method for pcache
print(x, ...)

Value

The package cache object, invisibly.

Arguments

x

The package cache to print.

...

Follow-on parameters to the print function.

See Also

Other pdiff: pkg_cache(), pkg_diff(), pkg_info(), pkg_stability(), pkg_versions(), print.pdiff(), print.pdiff_score(), print.pinfo()

Examples

Run this code
# Create vector of packages
pkgs <- c("ggplot2", "patchwork", "gt")

# Capture cache versions
res <- pkg_cache(pkgs)

# Print cache versions
print(res)
# # A package cache object
# - Last Update: 2025-03-01 20:51 UTC
# - Packages:
#     Package Version
# 1   ggplot2   3.5.1
# 2 patchwork   1.3.0
# 3        gt  0.11.1

Run the code above in your browser using DataLab