make_full_version: Make Full Package Version

Description Usage Arguments Value Examples

View source: R/make_full_version.R

Description

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

Usage

1

Arguments

x

Character vector of package versions

Value

Character vector of versions, each with the same length.

Examples

1
2
3
4
5
6
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])

muschellij2/neurocInstall documentation built on Oct. 18, 2020, 9:53 a.m.