Learn R Programming

evanverse (version 0.4.0)

pkg_version: Check Package Versions

Description

Check installed and latest available versions of R packages across CRAN, Bioconductor, and GitHub. Supports case-insensitive matching.

Usage

pkg_version(pkg, preview = TRUE)

Value

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

Arguments

pkg

Character vector. Package names to check.

preview

Logical. If TRUE (default), print result to console.

Examples

Run this code
if (FALSE) {
# Check versions of multiple packages:
pkg_version(c("ggplot2", "dplyr"))

# Check without console preview:
result <- pkg_version(c("ggplot2", "limma"), preview = FALSE)
}

Run the code above in your browser using DataLab