Learn R Programming

Require (version 1.0.1)

compareVersion2: Compare package versions

Description

Alternative to utils::compareVersion that is vectorized on version, versionSpec and/or inequality. This will also return an NA element in the returned vector if one of the arguments has NA for that element.

Usage

compareVersion2(version, versionSpec, inequality)

Value

a logical vector of the length of the longest of the 3 arguments.

Arguments

version

One or more package versions. Can be character or numeric_version.

versionSpec

One or more versions to compare to. Can be character or numeric_version.

inequality

The inequality to use, i.e., >=.