semver: Semantic version number

Description Usage Format Fields Method new Method compare Method format Method inc Method print

Description

An R6 class for semantic version numbers. See http://semver.org for details about semantic versioning.

Usage

1

Format

1
2
Class 'R6ClassGenerator' <environment: 0x103f9b778> 
 - attr(*, "name")= chr "semver_generator"

Fields

raw:

The raw version number that was used as the input to create a semver object.

version:

The parsed and canonized version number string.

major:

Major version, a number.

minor:

Minor version, a number.

patch:

Patch version, a number.

prerelease:

Pre-release version strings, in a list.

build:

Build strings, in a list.

loose:

Logical scalar, whether to allow (slightly) invalid version strings.

Method new

1
semver$new(version, loose = FALSE)

Arguments

version:

Version string.

loose:

Whether loose strings are allowed.

Description:

Create a new semver object.

Method compare

TODO

Method format

TODO

Method inc

TODO

Method print

1
object$print(\dots)

Arguments

...

Currently ignored

Description:

This method is called automatically when a semver object is printed to the R console.


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