Skip to contents

This function queries the selected universe for the code of the current version of the selected package.

Usage

wood_runiverse_version(package, universe = "ropensci")

Arguments

package

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

universe

character(1)
Name of a universe within R-universe, e.g. "ropensci".

Value

A single string with a version code.

Examples

wood_runiverse_version("targets")
#> [1] "1.10.1"
wood_runiverse_version("ggplot2", universe = "tidyverse")
#> [1] "3.5.1.9000"