I am not sure if this problem occurs due to the transition to v2.12.1 or not. I tried this on 2.12.1 and got the same error.
, - HTML . HTML , , . HTML : 1) , 2) .
, . 19, : 19 5, .. 24. .
, readHTMLTable(). , scrapeR XML:
library(XML)
library(scrapeR)
library(plyr)
library(stringr)
page <- scrape(url=URL, parse=TRUE)
raw <- xpathSApply(page[[1]], "//table//tr", xmlValue)
rows <- strsplit(raw, "\n")
rowlength <- (laply(rows, length))
rows <- rows[rowlength==max(rowlength)]
rows <- laply(rows, function(x)unlist(x))
rows <- aaply(rows, c(1,2), str_trim)
df <- as.data.frame(rows, stringsAsFactors = FALSE)
names(df) <- laply(df[1, ], str_trim)
df <- df[which(!is.na(as.numeric(df$Rk))), ]
df
, , , .
, , .