desc (version 1.2.0)

desc_set_version: Set the package version in DESCRIPTION

Description

Both $set_version() and $bump_version() use dots to separate the version number components.

Usage

desc_set_version(version, file = ".", normalize = FALSE)

Arguments

version

A string or a package_version object.

file

DESCRIPTION file to use. By default the DESCRIPTION file of the current package (i.e. the package the working directory is part of) is used.

normalize

Whether to normalize the write when writing back the result. See desc_normalize.

See Also

Other version numbers: desc_bump_version, desc_get_version