Check if this version of R is as new as the current release version of R.
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"] )
assert_is_current_r(severity = getOption("assertive.severity", "stop"))
is_r_current( cran = getOption("repos", c(CRAN = "http://cran.r-project.org"))["CRAN"] )
How severe should the consequences of the assertion be? Either "stop", "warning", "message", or "none".
"stop"
"warning"
"message"
"none"
A string giving the URL of the CRAN repository to check.
An object of class R_system_version giving the current release version of R.
R_system_version
# NOT RUN { # This example is marked "don't test" since it requires an # internet connection and is potentially long running is_r_current() # }
Run the code above in your browser using DataCamp Workspace