Skip to content

Instantly share code, notes, and snippets.

library(XML)
library(stringr)
url <- "http://cran.r-project.org/report_cran.html"
raw_path <- tempfile()
download.file(url, raw_path, quiet = TRUE)
# Extract table
tables <- readHTMLTable(raw_path, stringsAsFactors = FALSE)
downloads <- tables[[13]]