Re: [Rd] Consider getNamespaceVersion() returning a numeric_version

2024-10-17 Thread Tim Taylor
I mean the `numeric_version` object not a numeric (double/int). Basically to protect me from myself I'd prefer not to have to remember to wrap `getNamespaceVersion()` with `as.package_version()`. I suspect a grep of CRAN may highlight others who are erroneously comparing character objects rath

Re: [Rd] Consider getNamespaceVersion() returning a numeric_version

2024-10-17 Thread Dirk Eddelbuettel
On 17 October 2024 at 13:42, Tim Taylor wrote: | I mean the `numeric_version` object not a numeric (double/int). | Basically to protect me from myself I'd prefer not to have to remember | to wrap `getNamespaceVersion()` with `as.package_version()`. That would be a breaking change. I suspect yo

Re: [Rd] Consider getNamespaceVersion() returning a numeric_version

2024-10-17 Thread Dirk Eddelbuettel
On 17 October 2024 at 12:38, Tim Taylor wrote: | Would R-Core be receptive to having getNamespaceVersion() return a | numeric_version object instead of a named character? Is this good enough? What's your actual issue a 'numeric' would address? > as.package_version(getNamespaceVersion("base"

[Rd] Consider getNamespaceVersion() returning a numeric_version

2024-10-17 Thread Tim Taylor
Would R-Core be receptive to having getNamespaceVersion() return a numeric_version object instead of a named character? Tim __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Consider getNamespaceVersion() returning a numeric_version

2024-10-17 Thread Tim Taylor
On 17/10/2024 15:53, Prof Brian Ripley wrote: On 17/10/2024 13:42, Tim Taylor wrote: I mean the `numeric_version` object not a numeric (double/int). Basically to protect me from myself I'd prefer not to have to remember to wrap `getNamespaceVersion()` with `as.package_version()`. I suspect a

Re: [Rd] Consider getNamespaceVersion() returning a numeric_version

2024-10-17 Thread Prof Brian Ripley via R-devel
On 17/10/2024 13:42, Tim Taylor wrote: I mean the `numeric_version` object not a numeric (double/int). Basically to protect me from myself I'd prefer not to have to remember to wrap `getNamespaceVersion()` with `as.package_version()`. I suspect a grep of CRAN may highlight others who are erron