Sanitize version

sanitizeVersion(x)

Arguments

x

Object.

Value

numeric_version.

Note

Updated 2020-04-09.

Examples

x <- c("2.7.15rc1", "1.10.0-patch1", "1.0.2k-fips") sanitizeVersion(x)
#> [1] ‘2.7.15’ ‘1.10.0’ ‘1.0.2’