| Versions {Biobase} | R Documentation |
Class "Versions"
Description
A class to record version number information. This class is used to
report versions; to add version information to your own class, use
Versioned-class.
Methods
The following are defined; package developers may write additional methods.
new("Versions", ...)Create a new
Versions-classinstance, perhaps with named version elements (the contents of...) added. Named elements ofversionsare character strings that can be coerced usingpackage_version, orpackage_versioninstances,Versions-classobjects.object["id"]Obtain version information
"id"fromobject.object["id"] <- valueCreate or update version information
"id"on instanceobject.object[["id"]]Obtain version information
"id"fromobject. The result is a list of integers, corresponding to entries in the version string.object[["id"]] <- valueCreate or update version information
"id"on instanceobject.object$idObtain version information
"id"fromobject.The result is a list of integers, corresponding to entries in the version string.object$id <- valueCreate or update version information
"id"on instanceobject.show(object)Display version information.
updateObject(object)Update
objectto the currentVersions-classrepresentation. Note that this does not update another class that usesVersions-classto track the class version.as(object, "character")Convert
objectto character representation, e.g.,1.0.0object1 < object2Compare
object1andobject2using version class information. Symbols in addition to<are admissible; see?Ops
Author(s)
Biocore
See Also
classVersion
isCurrent
isVersioned
Examples
obj <- new("Versions", A="1.0.0")
obj
obj["A"] <- "1.0.1"
obj
obj["B"] <- "2.0"
obj
obj1 <- obj
obj1["B"] <- "2.0.1"
obj1 == obj
obj1["B"] > "2.0.0"
obj["B"] == "2.0" # TRUE!