compareRVersion {svMisc} | R Documentation |
Determine if R is older (return -1), or not (return 0 if equal, or 1 if newer) than a given version number.
compareRVersion(version)
version |
A string defining the version to compare to, like '2.0.0' or '1.9.1' |
-1 if R is older, 0 if equal, 1 if newer. Take care: if you specify version as "2.6", and R is version "2.6.0", then the function will return 1 (newer)!
Philippe Grosjean <phgrosjean@sciviews.org>
compareRVersion("2.6.0")