if (FALSE) {
# Check versions of multiple packages (requires network):
pkg_version(c("ggplot2", "dplyr"))
# Check with preview disabled:
result <- pkg_version(c("ggplot2", "limma"), preview = FALSE)
}
# \donttest{
# Quick demo with base R package:
try(pkg_version("base", preview = FALSE))
# }
Run the code above in your browser using DataLab