VersionNumber-class {reposTools}R Documentation

A class to handle version numbers

Description

This class maintains a version number and provides appropriate operations to manipulate it

Objects from the Class

VersionNumber objects should be created with the function buildVersionNumber.

Slots

stringRep:
Object of class "character", string representation of the version (e.g. "1.2.3")

Methods

major
(VersionNumber): The major number of the version number
minor
(VersionNumber): The minor number of the version number
revision
(VersionNumber): The revision portion of the version number
stringRep
(VersionNumber): The string representation of the version number
show
(VersionNumber): Outputs a string representation.
as.character
(VersionNumber): Outputs a string representation.
==
(VersionNumber): Equals comparitor
!=
(VersionNumber): Not equals comparitor
>=
(VersionNumber): Greater or equal comparitor
<=
(VersionNumber): Less or equal comparitor
<
(VersionNumber): Less than comparitor
>
(VersionNumber): Greater than comparitor

Author(s)

Jeff Gentry

See Also

buildVersionNumber

Examples

a <- buildVersionNumber("1.2.3")
major(a)
minor(a)
revision(a)
stringRep(a)

[Package reposTools version 1.8.0 Index]