Skip to contents

This function checks the installed and latest available versions of R packages across CRAN, Bioconductor, and GitHub. It supports case-insensitive matching and smart console previews.

Usage

pkg_version(pkg, preview = TRUE)

Arguments

pkg

Character vector of package names.

preview

Logical. If TRUE, print the result to console.

Value

A data.frame with columns: package, version (installed), latest (available), and source.

Examples

# Basic usage (commented to avoid network operations):
# pkg_version(c("ggplot2", "limma", "MRPRESSO", "nonexistentpackage123"))