is_r_current: Is this version of R up to date?

Description Usage Arguments Value Note Examples

Description

Check if this version of R is as new as the current release version of R.

Usage

1
2
3
4
5
6
assert_is_r_current(severity = getOption("assertive.severity", "stop"))

assert_is_current_r(severity = getOption("assertive.severity", "stop"))

is_r_current(cran = getOption("repos", c(CRAN =
  "http://cran.r-project.org"))["CRAN"])

Arguments

severity

How severe should the consequences of the assertion be? Either "stop", "warning", "message", or "none".

cran

A string giving the URL of the CRAN repository to check.

Value

An object of class R_system_version giving the current release version of R.

Note

Development versions of R can have versions higher than the current release version of R. For convenience, these will return TRUE.

Examples

1
2
3
# This example is marked "don't test" since it requires an 
# internet connection and is potentially long running
is_r_current()


Search within the assertive.reflection package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.