Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programatically get latest stable R release version number

Tags:

r

How can I use R to get the most recent release of R? I know about the gtools::checkRVersion but was hoping for a base solution, even better one that doesn't rely on scraping/regex.

The desired result as of today (2015-06-13) would be: 3.2.0

like image 398
Tyler Rinker Avatar asked Sep 02 '25 15:09

Tyler Rinker


1 Answers

Another potential alternative: CRAN has a dcf file with version information. I'm not sure how reliably it is updated though.

R> tmp <- tempfile()
R> download.file("http://cran.r-project.org/src/base/VERSION-INFO.dcf", tmp)
R> (x <- read.dcf(tmp))
     Release Old-release Devel  
[1,] "3.2.0" "3.1.3"     "3.3.0"
like image 143
Joshua Ulrich Avatar answered Sep 05 '25 04:09

Joshua Ulrich