Learn R Programming

releaser (version 1.0.0)

get_different_future_version: Compute possible future semantic versions

Description

Given a current package version, compute the potential next patch, minor, and major versions following semantic versioning rules.

Usage

get_different_future_version(version_number, verbose = TRUE)

Value

A named character vector with:

  • current_version – the input version,

  • future_patch_version – next patch version,

  • future_minor_version – next minor version,

  • future_major_version – next major version.

Arguments

version_number

[character] Current version number string (e.g. "1.2.3").

verbose

[logical] Whether to print current and new remote fields (default: TRUE).

Examples

Run this code
get_different_future_version("1.2.3")

Run the code above in your browser using DataLab