get_package_version: Function to get package versions and return details in a...

View source: R/get_package_version.R

get_package_versionR Documentation

Function to get package versions and return details in a tibble.

Description

Function to get package versions and return details in a tibble.

Usage

get_package_version(package, as_vector = FALSE)

Arguments

package

Vector of package names to get details for. package can also be "R".

as_vector

Should the package and version be formatted into a string?

Value

Tibble or character vector.

Author(s)

Stuart K. Grange

Examples


# Get package details
get_package_version(c("stats", "utils"))

# Get package details along with R's version
get_package_version(c("R", "stats", "utils"))

# Get details and return a vector
get_package_version(c("R", "stats", "utils"), as_vector = TRUE)


skgrange/threadr documentation built on May 11, 2024, 12:16 p.m.