render_version: Render semantic version

Description Usage Arguments Value Examples

View source: R/render_version.R

Description

Render a semantic version list or a semantic version pointer as an R list giving the major, minor and patch version as an integer and the prerelease and build version as a charcter

Usage

1
2
3
4
5
6
7
render_version(x, ...)

## S3 method for class 'svptr'
render_version(x, ...)

## S3 method for class 'svlist'
render_version(x, ...)

Arguments

x

An object of class "svlist" or "svptr".

...

Additional arguments passed on to methods.

Value

A list of semantic versions represented as integers (major, minor, patch) and characters (prerelease, build)

Examples

1
2
3
semver <- parse_version(c("1.2.3", "1.2.4", "1.0.0", "1.2.4-beta+2", "2.1.3-alpha", "1.9.4"))
render_version(semver[[4]])
render_version(semver)

semver documentation built on May 2, 2019, 5:53 a.m.