[Rd] Consider getNamespaceVersion() returning a numeric_version

Dirk Eddelbuettel edd @end|ng |rom deb|@n@org
Thu Oct 17 14:22:57 CEST 2024


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")) < "4.5.0"
   [1] TRUE
   > 
   > as.package_version(getNamespaceVersion("Rcpp")) > "1.0.11"
   [1] TRUE
   > as.package_version(getNamespaceVersion("Rcpp")) > "1.0.14"
   [1] FALSE
   >

Dirk

-- 
dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org



More information about the R-devel mailing list