I have a weird problem. I use
cannot open URL 'http://www.oanda.com/.....'
> download.file("https://oanda.com", destfile="/tmp/gh")
trying URL 'https://oanda.com'
downloaded 95 KB
> download.file("http://oanda.com", destfile="/tmp/gh")
trying URL 'http://oanda.com'
Error in download.file("http://oanda.com", destfile = "/tmp/gh") :
cannot open URL 'http://oanda.com'
I'm posting my comment above as answer.
Please refer to this bug report : http://github.com/joshuaulrich/quantmod/issues/83
It seems there is an issue with curl.
If wget is working fine, you can follow the same advice and try the R command
options(download.file.method="wget") to make quantmod download using wget instead of curl.