compare: Compare semantic version numbers

Description Usage Arguments Value

View source: R/func.r

Description

TODO

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
compare(a, b, loose = FALSE)

compare_loose(a, b)

rev_compare(a, b, loose = FALSE)

gt(a, b, loose = FALSE)

lt(a, b, loose = FALSE)

eq(a, b, loose = FALSE)

neq(a, b, loose = FALSE)

gte(a, b, loose = FALSE)

lte(a, b, loose = FALSE)

cmp(a, op = "==", b, loose = FALSE)

## S3 method for class 'semver'
lhs "<" rhs

## S3 method for class 'semver'
lhs ">" rhs

## S3 method for class 'semver'
lhs "<=" rhs

## S3 method for class 'semver'
lhs ">=" rhs

## S3 method for class 'semver'
lhs "==" rhs

## S3 method for class 'semver'
lhs "!=" rhs

Arguments

a

Version string or semver object.

b

Version string or semver object.

loose

Whether loose ranges are allowed.

op

Operator to test for. Possible values: = and == are equivalent, the empty string also means ==; !=, >, >=, <, <=.

Value

-1 if a is older, 1 if a is newer, 0 if a and b are equal.

Logical scalar.


metacran/semver documentation built on May 22, 2019, 7:48 p.m.