These functions allows to update the components of version objects.
increment_major(), increment_minor(), and increment_patch() update
the major, minor, and patch version numbers respectively.
Note that these functions reset the pre-release and build metadata to empty.
mark_as_pre_release() marks the version as a pre-release version.
add_build_metadata() adds build metadata to the version.
Usage
increment_major(x, ...)
# S3 method for smvr
increment_major(x, ...)
increment_minor(x, ...)
# S3 method for smvr
increment_minor(x, ...)
increment_patch(x, ...)
# S3 method for smvr
increment_patch(x, ...)
mark_as_pre_release(x, ...)
# S3 method for smvr
mark_as_pre_release(x, ids, ...)
add_build_metadata(x, ...)
# S3 method for smvr
add_build_metadata(x, metadata = "", ...)
Value
An updated version object with the specified changes applied.
Arguments
x
An version object
...
Additional arguments passed to methods.
ids
Something can be cast to pre_release_ids representing the
pre-release identifiers, length must be 1 or the same as x.
metadata
A character vector of build metadata,
length must be 1 or the same as x.