neurocInstall (version 0.12.0)

make_full_version: Make Full Package Version

Description

Makes a package version to have all the same length. This is helpful when using compareVersion.

Usage

make_full_version(x)

Arguments

x

Character vector of package versions

Value

Character vector of versions, each with the same length.

Examples

Run this code
# NOT RUN {
x = c("1.6", "1.6.0")
compareVersion(x[1], x[2])
x2 = make_full_version(x)
compareVersion(x2[1], x2[2])
x = c("1.6", "1.6.0")
compareVersion(x2[1], x2[2])
# }

Run the code above in your browser using DataLab