r - Error: failed to load external entity -
this question has answer here:
i'm pretty new r. i'm trying run script site. http://www.thertrader.com/category/trading-strategies/
i've gotten far (not far @ all).
library(tseries) library(quantmod) library(xml) startdate <- "2005-01-01" tables <- readhtmltable("http://en.wikipedia.org/wiki/list_of_s%26p_500_companies")
error: failed load external entity
can me working?
there seems weird error in way readhtmltable
trying access internet (i'm getting same error). workaround, try using httr
download , parse using readhtmltable
:
library(httr) tables <- get("http://en.wikipedia.org/wiki/list_of_s%26p_500_companies") tables <- readhtmltable(rawtochar(tables$content))
Comments
Post a Comment