Skip to contents

This function searches for installed package versions inside specified library paths.

Usage

wood_local_versions(package, paths = .libPaths()[1])

Arguments

package

character(1)
Name of a package to query for.

paths

character()
Paths to local libraries, by default the first element of .libPaths(). If equal to "all", uses all elements of .libPaths().

Value

A character vector of version codes.

Examples

wood_local_versions("httr")
#> [1] "1.4.5"