r - 将应用程序部署到 Shinyapps.io 时出现错误消息

标签 r shiny

当部署我的应用程序 (shinyapps::deployApp('path/to/your/app') 时,我收到以下错误消息:

error: Parsing manifest
################################## Begin Log ################################## 
################################### End Log ################################### 
Error: Unhandled Exception: Child Task 30191454 failed: Error parsing manifest: Unsupported locale: it_NA.UTF-8

看来这与编码有关,因为我来自意大利。但是我没有使用任何奇怪的字符。

我试过“使用编码保存”>UTF-8。我尝试部署它,但收到相同的错误消息。

在本地托管时工作正常。

ui.R

shinyUI(fluidPage(
  titlePanel("Probability Calculator"),

  sidebarLayout(
    sidebarPanel(
      helpText("Calculate posterior probability of an outcome"),


      numericInput("nofs", 
                   label = "Number of successes",
                   value=1),

      numericInput("notr", 
                   label = "Number of trials",
                   value=1),

      sliderInput("range", 
                  label = "Confidence Interval",
                  min = 0, max = 1, value = c(0, 1))


    ),

    mainPanel(
      textOutput("Calculator")
    )
  )
))

服务器.R

shinyServer(function(input, output) {
  output$Calculator <- renderText({
  x=1:10000000 
  denominator<-dbinom(input$nofs, size=input$notr, prob=(x/10000000))
  sommadenominator=sum(denominator)
  h1=(input$range[1]*10000000):(input$range[2]*10000000) 
  numerator<-dbinom(input$nofs, size=input$notr, prob=(h1/10000000)) 

  sommanumerator=sum(numerator)

  sommanumerator/sommadenominator
  })
})

最佳答案

我遇到了同样的错误。首先,我尝试使用 Davide 的回答更新 Shiny 的应用程序包,但仍然收到错误。我最终删除了在我的目录中自动生成的图标文件,然后我就可以发布了。不过,我这样做是不得已,因为我不确定 Icon 文件的作用,也找不到任何关于它的引用资料。

关于r - 将应用程序部署到 Shinyapps.io 时出现错误消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29983651/

相关文章:

r - 提高数据表日期+时间粘贴的性能?

RStudio 找不到用于绘图的字体

r - 调整 Rmarkdown 文档中嵌入的 Shiny 应用程序的大小

r - 通过 Shiny 将图片上传到 knitr 文档

r - 在 Shiny 的应用程序上安排任务

docker - 在 DigitalOcean 上使用 Docker 运行 Shiny 应用程序

r - 使用knitr时如何从多个图中旋转一个图?

在数据帧的每一行上运行函数,将结果存储在新列 R 中

xmlvalue 与 XMLAttributeValue

r - 是否可以将传单 map 传递到另一个模块?