2016-02-12 47 views
0

我試圖從shiny-Rstudio網站運行閃亮的教程6應用程序。網址是:閃亮的教程第6課:出現錯誤

http://shiny.rstudio.com/tutorial/lesson6/

在嘗試運行應用程序時,我收到以下錯誤:

Error : Failed to download file. Error message: 
cannot open URL 'https://research.stlouisfed.org/fred2/series/CPIAUCNS/downloaddata/CPIAUCNS.csv' 

我是新來的光澤和不理解這個錯誤。

+0

發佈您的代碼,您會在哪裏收到此錯誤消息? – demonplus

回答

1

發現在在堆棧溢出其他線程的答案:

Quantmod Error 'cannot open URL'

應該用於運行應用程序的第6課的代碼是:

library(shiny) 
options(download.file.method="libcurl")#This fixed the error 
runApp("stockVis") 
0

確保您有在名爲「stockVis」的文件夾中保存了server.R,ui.Rhelpers.r。如果沒關係,您可以嘗試指定應用的路徑,如下所示:

library(quantmod) 
runApp("D:/mydocuments/stockVis")