Title: | Semantic Version Utilities |
---|---|
Description: | Semantic Versions allow for standardized management versions. This package implements semantic versioning handling in R. using R6 to create a mutable object that can handle deciphering and checking versions. |
Authors: | Adam Wheeler [aut, cre, cph] |
Maintainer: | Adam Wheeler <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1.0 |
Built: | 2024-11-06 02:40:02 UTC |
Source: | https://github.com/ajwtech/semverutils |
semVer is an R6 class to create an object for working with Semantic versioning
semVer is an R6 class to create an object for working with Semantic versioning
SemVerVersion
version of semantic versioning rules to be followed currently only version 2.0.0 is supported.
higherThanAll()
higherThanAll()
test if the vector of versions passed in are
all lower than this object
semVer$higherThanAll(Versions)
Versions
character vector of semantically formatted version numbers
atomic boolean
sem <- semVer$new("3.0.0") sem$higherThanAll(c("2.0.2", "0.1.0"))
new()
initializes a new semVer object with the version supplied
semVer$new(Version = "", SemVerVersion = "2.0.0")
Version
character of semantically formatted version numbers
SemVerVersion
defaults to "2.0.0" no other options currently available.
semVer object holding version data
sem <- semVer$new("3.0.0")
clone()
The objects of this class are cloneable with this method.
semVer$clone(deep = FALSE)
deep
Whether to make a deep clone.
## ------------------------------------------------ ## Method `semVer$higherThanAll` ## ------------------------------------------------ sem <- semVer$new("3.0.0") sem$higherThanAll(c("2.0.2", "0.1.0")) ## ------------------------------------------------ ## Method `semVer$new` ## ------------------------------------------------ sem <- semVer$new("3.0.0")
## ------------------------------------------------ ## Method `semVer$higherThanAll` ## ------------------------------------------------ sem <- semVer$new("3.0.0") sem$higherThanAll(c("2.0.2", "0.1.0")) ## ------------------------------------------------ ## Method `semVer$new` ## ------------------------------------------------ sem <- semVer$new("3.0.0")