Skip to content

Commit 6773897

Browse files
authored
Merge pull request #1567 from Cimbali/main
Add get_latest_verison for R
2 parents de58a63 + d9f92b0 commit 6773897

File tree

1 file changed

+5
-0
lines changed
  • lib/docs/scrapers

1 file changed

+5
-0
lines changed

lib/docs/scrapers/r.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,10 @@ class R < FileScraper
4949
doc/manual/R-lang.html
5050
)
5151

52+
def get_latest_version(opts)
53+
body = fetch('https://cran.r-project.org/src/base/NEWS', opts)
54+
body.match(/CHANGES IN R ([\d.]+):/)[1]
55+
end
56+
5257
end
5358
end

0 commit comments

Comments
 (0)