Major version

majorVersion(x)

Arguments

x

Object.

Value

numeric_version.

Note

Updated 2020-04-09.

Examples

majorVersion(c("1.0.0", "2.1"))
#> [1] ‘1’ ‘2’