desc_get_version: Query the package version in DESCRIPTION

desc_get_versionR Documentation

Query the package version in DESCRIPTION

Description

If the file has no Version field, or it is an invalid version string, then it throws an error.

Usage

desc_get_version(file = ".")

Arguments

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.

Value

A base::package_version object.

See Also

Other version numbers: desc_bump_version(), desc_set_version()


desc documentation built on Sept. 8, 2022, 5:06 p.m.