Compares current R version with a given target version, which may be useful for implementing version dependent code.
testRversion(x, test = 1L)
x | target version to compare with. |
---|---|
test | numeric value that indicates the comparison to be carried out.
The comparison is based on the result from
|
a logical
testRversion("2.14")#> [1] TRUEtestRversion("2.15")#> [1] TRUEtestRversion("10")#> [1] FALSEtestRversion("10", test = -1)#> [1] TRUEtestRversion("< 10")#> [1] TRUE#> [1] FALSE#> [1] TRUE