R language versions
last_version_r(major = NULL)
Major release number of R language (e.g. 1L
, 2L
, 3L
, ...). If major = NULL
, the function
will consider the major release number.
A list of two named elements will be returned. Are they:
last_version
: Returns the latest stable version of the language given a major version (major version).
If major = NULL
, the latest stable version of the language will be returned based on the set of all language versions.
versions
: Character vector with all language versions based on a major version (higher version).
If major = NULL
, versions
will be a vector with the latest language versions.
n
: Total number of versions of R based on major version. If major = NULL
, versions
will be a vector with the latest language versions.
This function automatically searches R language versions in the official language repositories. That way,
doing last_version_r(major = NULL)
you will always be well informed about which latest stable version the
R language is in. You can also set the higher version and do a search on the versions of the R language whose major
version was 1L
or 2L
, for example.
# last_version_r(major = NULL)