[Rd] Feature request: compareVersion

Martin Maechler m@ech|er @end|ng |rom @t@t@m@th@ethz@ch
Tue Dec 21 15:19:14 CET 2021


> Hi,
> currently I have to use

> compareVersion(as.character(packageVersion("shiny")), "0.11")

> It would be nice if compareVersion would make the as.character 
> internally, rather then force the user to do it.

> Thanks
> Sigbert

Well, if you follow the help page examples of packageVersion()
you would use

> packageVersion("Matrix") >= "1.4.0"
[1] TRUE
> packageVersion("shiny") >= "0.11"
[1] TRUE
>



More information about the R-devel mailing list