Learn R Programming

installr (version 0.8)

check.for.updates.R: Checks if there is a newer version of R

Description

Fetches the latest (not development!) R version and compares it with your currently installed R version (the version of the R session from which you are running this function).

Usage

check.for.updates.R(notify_user = T,
    page_with_download_url = "http://cran.rstudio.com/bin/windows/base/")

Arguments

notify_user
if to print to you (the user) what is the latest version and what version you are currently using.
page_with_download_url
the URL of the page from which R can be downloaded.

Value

  • TRUE/FALSE - if there is a newer version of R to install or not.

Examples

Run this code
check.for.updates.R()
# Possible output:
#  There is a newer version of R for you to download!
#  You are using R version:  2.15.0
#  And the latest R version is:  2.15.3
#  [1] TRUE

Run the code above in your browser using DataLab