Learn R Programming

semver (version 0.2.0)

render_version: Render semantic version

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

render_version(x, ...)
"render_version"(x, ...)
"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

Run this code
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)

Run the code above in your browser using DataLab