2015-05-01 47 views
2

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

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

它看起来像它有与编码的事,因为我是从意大利是。但是我没有使用任何奇怪的字符。

我试过“Save with encoding”> 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") 
    ) 
) 
)) 

server.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 
    }) 
}) 

回答

3

这个问题是通过固定shinyapps包解决了由于安迪基普对Google Groups。我不得不重新下载并重新部署应用程序。 具体做法是:请做更新您的shinyapps包:

devtools :: install_github( 'rstudio/shinyapps')

那就试试这个:

选项(shinyapps.locale.cache = FALSE)

shinyapps ::: systemLocale()

然后再试试deployApp()

3

我得到同样的埃罗河首先,我尝试使用Davide的答案更新闪亮的应用程序包,但仍收到错误。我结束了删除在我的目录中自动生成的图标文件,然后我能够发布。尽管我做了最后的手段,因为我不确定图标文件的功能,也找不到任何关于它的参考。