Learn R Programming

miniCRAN (version 0.3.0)

twodigitRversion: Get a two-digit version of the R version

Description

Get a two-digit version of the R version

Usage

twodigitRversion(Rversion = R.version)

Value

A character string representing the two-digit R version.

Arguments

Rversion

Version of R (only used if type is not source.) Defaults to R.version, but this can be specified as any of the following formats:

  • a character string with the two digit R version, e.g. "3.1"

  • a list with components major and minor

  • the result of getRversion()

  • the result of R.version