Bump a Version Number

bump_version(x, which = getOption("versionr.parts"), n = 1)

Arguments

x

Version numbers to bump

which

Either a number indicating the part to bump or one of the parts as specified in getOption("versionr.parts") - defaults are "major", "minor", "patch" and "dev"

n

The amount to increment the version number part by - will almost always be 1

Value

A list of version numbers

Examples

nums <- version_number("1.0.0.0", "2.0") bump_version(nums)
#> <version_number[2]> #> [1] 2.0.0.0 3.0