Skip to content
Prev 63352 / 63421 Next

Round trip between package_version and character

It is good to see so much interest in version numbers!

R doesn't require Calendar versioning (https://calver.org/), Semantic
Versioning or Debian versions.
The package_version describe the version numbers as:
The R-extension manual describes them in the section "The DESCRIPTION file":
Note that here there are some versions with a leading 0 (which
package_version accepts!).

I think fully supporting any of these versions schemes would involve
changing how R itself resolves dependencies for packages (mainly to
cover the [:alpha:] characters).
This is a much larger patch/project than what I asked for and in any
way R still would need to manipulate (and compre) them easily.

In terms of implementation if the attribute approach is added it could
be used by format.numeric_version.
But I'm not sure if any package relies on this to remove any "-" and
leading 0 present...
function none would be impacted as it is primarily used to enable or
disable features according to the versions of dependencies installed.



Missatge de Charles Plessy <charles-listes+rd at plessy.org> del dia dg.,
18 de gen. 2026 a les 2:40: