Hi Dan,
A couple of things: first, I think that file really does not exist (at
least I can't open it in my web browser). Second, even if it did,
url() cannot download from https, according to the details section of
?url, which points you to RCurl. So, once you verify that you url
actually exists you can do something like
library(XML)
library(RCurl)
tabs <-
readHTMLTable(getURL("http://en.wikipedia.org/wiki/List_of_countries_by_population"))
Best,
Ista
On Tue, Jan 15, 2013 at 2:59 PM, Lopez, Dan <lopez235 at llnl.gov>
wrote:> Hi,
>
> I am using XML::readHTMLTable and getting the below error. Does anyone know
why? Does this function not work with https? I didn't see anything in help
about that.
>
>> library(XML)
>>
wampage<-readHTMLTable('https://hr-workforce-analytics.llnl.gov/wf_pi_pop.html',1)
> Error in htmlParse(doc) :
> File https://hr-workforce-analytics.llnl.gov/wf_pi_pop.html does not
exist
>
> Dan
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.