ver_latest: Find the latest version code

View source: R/latest.R

ver_latestR Documentation

Find the latest version code

Description

ver_latest() returns the latest of the version codes.

Usage

ver_latest(x)

Arguments

x

character()
A vector of version codes that start with a number (as in "1.5.0"), i.e. without initial "v" (as in "v1.5.0").

Value

A character vector with one element.

See Also

ver_oldest()

Examples

ver_latest(c("1.3-0", "1.4-1", "0.0.0.9000", "1.4-0a", "1.4-0"))


versionsort documentation built on March 25, 2022, 9:07 a.m.