powered by
If the file has no Version field, or it is an invalid version string, then it throws an error.
Version
desc_get_version(file = ".")
A base::package_version object.
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.
Other version numbers: desc_bump_version(), desc_set_version()
desc_bump_version()
desc_set_version()