[Rd] max on numeric_version with long components
Jonathan Keane
jke@ne @end|ng |rom gm@||@com
Sat Apr 27 20:56:58 CEST 2024
I've noticed something in R devel which seems a little off and not the
behavior I see in 4.4.0 or earlier versions. With numeric_versions that
have long (>8 digit) final components max and min return the first element
and not the max or min:
In devel:
> max(numeric_version(c("1.0.1.100000000", "1.0.3.100000000",
"1.0.2.100000000")))
[1] ‘1.0.1.100000000’
> max(numeric_version(c("1.0.1.10000000", "1.0.3.10000000",
"1.0.2.10000000")))
[1] ‘1.0.3.10000000’
In 4.4.0:
> max(numeric_version(c("1.0.1.100000000", "1.0.3.100000000",
"1.0.2.100000000")))
[1] ‘1.0.3.100000000’
> max(numeric_version(c("1.0.1.10000000", "1.0.3.10000000",
"1.0.2.10000000")))
[1] ‘1.0.3.10000000’
Is this expected? I've looked in NEWS to see but didn't see anything
referencing this. Happy to submit an issue to bug tracker.
-Jon
[[alternative HTML version deleted]]
More information about the R-devel
mailing list