当部署我的应用程序 (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/