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]]

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to