2016-02-12 34 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")