When deploying my app (shinyapps::deployApp('path/to/your/app')
, I get the following error message:
error: Parsing manifest
################################## Begin Log ##################################
################################### End Log ###################################
Error: Unhandled Exception: Child Task 30191454 failed: Error parsing manifest: Unsupported locale: it_NA.UTF-8
It looks like it's got to do with encoding, as I am from Italy. However I didn't use any strange characters.
I tried "Save with encoding">UTF-8. I tried deploying it but I got the same error message.
It works fine when hosted locally.
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
})
})