I'm pretty new to R. I'm trying to run the script from this site. http://www.thertrader.com/category/trading-strategies/
I've gotten this far (not too far at 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 to load external entity
Can someone help me get this working?