| pkg_version | R Documentation |
Check installed and latest available versions of R packages across CRAN, Bioconductor, and GitHub. Supports case-insensitive matching.
pkg_version(pkg, preview = TRUE)
pkg |
Character vector. Package names to check. |
preview |
Logical. If TRUE (default), print result to console. |
A data.frame with columns: package, version (installed),
latest (available), and source.
## Not run:
# Check versions of multiple packages:
pkg_version(c("ggplot2", "dplyr"))
# Check without console preview:
result <- pkg_version(c("ggplot2", "limma"), preview = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.