【问题标题】:Shiny tutorial lesson 6: getting errorShiny 教程第 6 课:出现错误
【发布时间】:2016-05-23 14:58:44
【问题描述】:

我正在尝试运行来自 shiny-Rstudio 网站的闪亮教程 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'

我是闪亮的新手,不明白这个错误。

【问题讨论】:

  • 发布您的代码,您在哪里收到此错误?

标签: r shiny


【解决方案1】:

在 stack-overflow 的其他线程中找到答案:

Quantmod Error 'cannot open URL'

用于运行第 6 课应用程序的代码是:

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

【讨论】:

    【解决方案2】:

    确保您已将server.Rui.Rhelpers.r 保存在名为“stockVis”的文件夹中。如果没问题,您可以尝试指定应用程序的路径,如下所示:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-10-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-03-08
      相关资源
      最近更新 更多