| classVersion {Biobase} | R Documentation |
Retrieve information about versioned classes
Description
These generic functions return version information for classes
derived from Versioned-class, or
VersionsNull-class for unversioned objects. The
version information is an object of Versions-class.
By default, classVersion has the following behaviors:
classVersion(Versioned-instance)Returns a
Versions-classobject obtained from the object.classVersion{"class"}Consults the definition of
classand return the current version information, if available.classVersion(ANY)Return a
VersionsNull-classobject to indicate no version information available.
By default, the classVersion<- method has the following behavior:
classVersion(Versioned-instance)["id"] <- valueAssign (update or add)
valuetoVersions-instance.valueis coerced to a valid version description. seeVersions-classfor additional access methods.
Usage
classVersion(object)
classVersion(object) <- value
Arguments
object |
Object whose version is to be determined, as described above. |
value |
|
Value
classVersion returns an instance of Versions-class
Author(s)
Biocore team
See Also
Examples
obj <- new("VersionedBiobase")
classVersion(obj)
classVersion(obj)["Biobase"]
classVersion(1:10) # no version
classVersion("ExpressionSet") # consult ExpressionSet prototype
classVersion(obj)["MyVersion"] <- "1.0.0"
classVersion(obj)