Error when converting an XML (from a url) to a dataframe

Hi there. I'm trying to convert an xml derived from a url to a dataframe. It's worked (more or less) fine before, but today it seems to have broken, with error messages like:

Error in open.connection(x, "rb") : 
  Timeout was reached: [] Connection timed out after 10000 milliseconds


Error in UseMethod("xml_find_all") : 
  no applicable method for 'xml_find_all' applied to an object of class "function"


Error in (function (classes, fdef, mtable)  : 
  unable to find an inherited method for function ‘xmlToDataFrame’ for signature ‘"function", "missing", "missing", "missing", "missing"’
In addition: Warning messages:
1: closing unused connection 4 ( 
2: closing unused connection 3 (

My code is this:


url <- read_html("")
dt <- rbindlist(lapply(url %>% html_nodes(css = "body > View_GILTS_IN_ISSUE > View_GILTS_IN_ISSUE") %>% 
dt <- cbind(dt[,9, with = TRUE], 
  [,-9, with = TRUE], as.character)))

Does anyone have any advice on where I'm going wrong?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.