get_different_future_version function

Compute possible future semantic versions

Compute possible future semantic versions

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

get_different_future_version(version_number, verbose = TRUE)

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).

Returns

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.

Examples

get_different_future_version("1.2.3")

Other functions in releaser

Related functions from the same R package