Skip to content
Back to formatted view

Raw Message

Message-ID: <1470a7d1-6dcb-46a0-4029-b1ae6c22faa4@wiwi.hu-berlin.de>
Date: 2021-12-21T14:41:07Z
From: Sigbert Klinke
Subject: Feature request: compareVersion
In-Reply-To: <25025.57954.319849.301131@stat.math.ethz.ch>

Hi,

compareVersion returns -1, 0, or 1 rather than TRUE or FALSE which could 
be used in computing.

Sigbert

Am 21.12.21 um 15:19 schrieb Martin Maechler:
> 
>> 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
>>


-- 
https://hu.berlin/sk
https://www.stat.de/faqs
https://hu.berlin/mmstat
https://hu.berlin/mmstat-int
https://hu.berlin/mmstat-ar