make_full_version.Rd
Makes a package version to have all the same length.
This is helpful when using compareVersion
.
make_full_version(x)
x | Character vector of package versions |
---|
Character vector of versions, each with the same length.
x = c("1.6", "1.6.0")
compareVersion(x[1], x[2])
#> [1] -1
x2 = make_full_version(x)
compareVersion(x2[1], x2[2])
#> [1] 0
x = c("1.6", "1.6.0")
compareVersion(x2[1], x2[2])
#> [1] 0