【问题标题】:Upload Shiny App to shinyapps.io in Showcase Mode以 Showcase 模式将 Shiny App 上传到 shinyapps.io
【发布时间】:2018-06-10 13:58:39
【问题描述】:

我正在尝试将 Shiny 应用程序上传到 Showcase mode 中的 shinyapps.io。根据这些说明,其中包含一个名为 DESCRIPTION(无扩展名)的文本文件,其中包含以下字段(来自上面链接的示例:

Title: Hello Shiny!
Author: RStudio, Inc.
AuthorUrl: http://www.rstudio.com/
License: GPL-3
DisplayMode: Showcase
Tags: getting-started
Type: Shiny

This answer 描述了相同的过程 - 但是,它似乎不再起作用了。

当我尝试发布带有 DESCRIPTION 文件的 Shiny 应用程序时,如示例中的一个,返回以下错误:

Preparing to deploy application...DONE
Uploading bundle for application: 88219...Error in readDcf(file.path(project, "DESCRIPTION"))[, "Package"] : 
  subscript out of bounds
Calls: <Anonymous> ... suppressMessages -> withCallingHandlers -> <Anonymous> -> unname
Execution halted

为了它的价值,我尝试从 DESCRIPTION 文件中排除不同的字段,甚至尝试只包含 DisplayMode: Showcase 的字段。我还尝试将文件保存在不同的编辑器中。

这个Google Groups thread 似乎暗示这是一个错误,但由于除了何时有效之外似乎没有发布关于它的问题,我希望看看是否有人找到或可以建议修复。

编辑:我发布了Issue on the Shiny Apps GitHub page

【问题讨论】:

    标签: r shiny


    【解决方案1】:

    从 GitHub 安装最新版本的 packrat(即 devtools::install_github("rstudio/packrat") 成功了,感谢 this GitHub Issue suggestion。安装最新的 CRAN 版本 (install.packages("packrat")) 不起作用。

    【讨论】:

      【解决方案2】:

      我使用带有documentation 中未描述的附加字段的说明文件在Showcase mode 的闪亮服务器上打开我的闪亮应用程序,它可以工作。

      Package: MyShinyApp
      Version: 1.0
      Title: Hello Shiny!
      Author: RStudio, Inc.
      AuthorUrl: http://www.rstudio.com/
      License: GPL-3
      DisplayMode: Showcase
      Tags: getting-started
      Type: Shiny
      

      添加字段PackageVersion 将解决此错误ERROR system error 71 (Protocol error) [description=Version field not found in...]

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2018-01-02
        • 2021-08-19
        • 2014-12-06
        • 2018-06-11
        • 1970-01-01
        • 2018-06-28
        • 2021-08-17
        • 1970-01-01
        相关资源
        最近更新 更多