Description Usage Arguments Details
For MAJOR.MINOR.PATCH (semver-tri), turn '1' into '1.0.0'; '1.1' into '1.1.0'; '1.1.1' into '1.1.1'. For MAJOR.MINOR.PATCH.EXTENSION (semver-quad), turn '1' into '1.0.0.0'; '1.1' into '1.1.0.0'; '1.1.1.0' into '1.1.1.0'.
1 | complete_semver(x, quad = FALSE)
|
x |
a character vector of full or partial version strings |
quad |
(logical) if 'TRUE' then a three-dot semver is returned, else a two-dot semver is returned. Default: 'FALSE'. |
Partial validity checking is performed to test if the input strings contain only digits and periods. "Invalid" input is returned unscathed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.