Learn R Programming

assertive (version 0.3-0)

assert_is_current_r: Is this version of R up to date?

Description

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

Usage

assert_is_current_r()

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

Arguments

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.

Examples

Run this code
# This example is marked "don't test" since it requires an
# internet connection and is potentially long running
is_current_r()

Run the code above in your browser using DataLab