title: Get data from Yahoo! Finance to R
body: <p>I am trying to get data from Yahoo! Finance to R</p>
  
  <p>I've installed quantmod like that:</p>
  
  <pre><code>install.packages("quantmod", repos="http://R-Forge.R-project.org")
  </code></pre>
  
  <p>But when I try this:</p>
  
  <pre><code>getQuote("QQQQ;SPY", what=yahooQF("Last Trade (Price Only)"))
  </code></pre>
  
  <p>I see:</p>
  
  <pre><code>Error in download.file(paste("http://finance.yahoo.com/d/quotes.csv?
  s=",  : 
  cannot open URL 'http://finance.yahoo.com/d/quotes.csv?
  s=QQQQ+SPY&amp;f=d1t1l1'
  In addition: Warning message:
  In download.file(paste("http://finance.yahoo.com/d/quotes.csv?s=",  :
  URL 'http://download.finance.yahoo.com/d/quotes.csv?
  s=QQQQ+SPY&amp;f=d1t1l1': status was 'Couldn't resolve host name'
  </code></pre>