Reduce function over the utils::compareVersion

compareVersionsMax(vec, na.rm = TRUE)

Arguments

vec

character vector.

na.rm

logical if to remove NA values.

Value

character maximum version

Examples

compareVersionsMax(c("1.1.1", "0.2.0"))
#> [1] "1.1.1"