compareRVersion: Compare current R version with a specified one

Description Usage Arguments Value Author(s) See Also Examples

View source: R/compareRVersion.R

Description

Determine if R is older (return -1), or not (return 0 if equal, or 1 if newer) than a given version number.

Usage

1

Arguments

version

a string defining the version to compare to, like '2.0.0' or '1.9.1'.

Value

-1 if R is older, 0 if equal, 1 if newer. Take care: if you specify version as "2.11", and R is version "2.11.0", then the function will return 1 (newer)!

Author(s)

Philippe Grosjean <[email protected]>

See Also

compareVersion, R.version, isAqua, isWin

Examples

1
compareRVersion("2.11.0") # Note that we strongly advise to use R > 2.11.0!

svMisc documentation built on May 29, 2017, 12:18 p.m.