A recent PR (https://bugs.r-project.org/show_bug.cgi?id=18548) showed
that whereas version inputs to numeric_version() and package_version()
were always documented to be "suitable character vectors" (or numeric
vesion objects), the implementation also accepted numeric inputs via
as.character() coercion, the results of which however are (at least
currently) dependent on the setting of the OutDec option. Given that
numeric input is certainly error-prone, imagine
R Core has decided it would be best to gradually phase out such inputs.
Thus, With c84610 R-devel now warns about such inputs, which will
typically not show in the check results (but immediately giving errors
would cause too much disruption). Some of these warnings can be found
by code analyis. I list these uses below, can you please fix as
necessary? E.g., for the first issue shown,
packageVersion("ggplot2") >= 3.3
should be changed to
packageVersion("ggplot2") >= "3.3"
etc.
When doing so, please check the check outputs for such warnings, e.g. by
grep -r 'invalid non-character version specification' PKGNAME.Rcheck
One can for now set env var _R_CALLS_INVALID_NUMERICVERSION to
something non-empty to get the call stacks for the warnings.
Please use a current version of R-devel for checking.
Please correct before 2023-08-16 to safely retain your package on CRAN.
Please note that CRAN will be closed for submissions between 2023-07-21
2023-08-08.
A recent PR (https://bugs.r-project.org/show_bug.cgi?id=18548) showed that whereas version inputs to numeric_version() and package_version() were always documented to be "suitable character vectors" (or numeric vesion objects), the implementation also accepted numeric inputs via as.character() coercion, the results of which however are (at least currently) dependent on the setting of the OutDec option. Given that numeric input is certainly error-prone, imagine
as.numeric_version(1.20) as.numeric_version(1.5-1)
R Core has decided it would be best to gradually phase out such inputs.
Thus, With c84610 R-devel now warns about such inputs, which will typically not show in the check results (but immediately giving errors would cause too much disruption). Some of these warnings can be found by code analyis. I list these uses below, can you please fix as necessary? E.g., for the first issue shown,
packageVersion("ggplot2") >= 3.3
should be changed to
packageVersion("ggplot2") >= "3.3"
etc.
When doing so, please check the check outputs for such warnings, e.g. by
grep -r 'invalid non-character version specification' PKGNAME.Rcheck
One can for now set env var _R_CALLS_INVALID_NUMERICVERSION to something non-empty to get the call stacks for the warnings.
Please use a current version of R-devel for checking.
Please correct before 2023-08-16 to safely retain your package on CRAN.
Please note that CRAN will be closed for submissions between 2023-07-21 2023-08-08.
Best -k