getMaxVersion {reposTools}R Documentation

A function to retrieve the maximum value from a list of VersionNumbers

Description

Given a list of VersionNumber objects, will either return the largest version number (getMaxVersion) or the element number for the list that corresponds to this value.

Usage

getMaxVersion(x)
getMaxElement(x)
getMinElement(x)

Arguments

x A list of VersionNumber objects

Author(s)

Jeff Gentry

Examples

   a <- list(buildVersionNumber("1.2.3"), buildVersionNumber("1.5.0"))
   getMaxVersion(a)
   getMaxElement(a)

[Package reposTools version 1.8.0 Index]