testRversion: Testing R Version

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Compares current R version with a given target version, which may be useful for implementing version dependent code.

Usage

1
  testRversion(x, test = 1L)

Arguments

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 utils::compareVersion(R.version, x):

  • 1: is R.version > x?

  • 0: is R.version = x?

  • -1: is R.version < x?

Value

a logical

Examples

1
2
3
4
5
6
7

pkgmaker documentation built on May 2, 2019, 4:42 p.m.