闪亮服务器无法打开连接到任何闪亮的应用
问题描述:
当我尝试连接到我的网络服务器的任何闪亮的应用程序,我收到以下错误:闪亮服务器无法打开连接到任何闪亮的应用
ERROR: cannot open the connection
我目前存储在/ SRV /闪亮的应用服务器上的服务器文件夹和该文件夹当前具有正确的读/写权限。早些时候,当我上传我的应用程序时,它运行没有问题,但我做了几处更改,当我更新文件时,我突然开始出现此错误。我尝试回滚所有更改,但错误仍然存在,因此最终我尝试从Shiny网站上传示例应用程序,并且也得到相同的错误。
下面是示例应用程序目前,我试图让工作的代码,但我不认为这是问题:
ui.R
library(shiny)
bootstrapPage(
selectInput(inputId = "n_breaks",
label = "Number of bins in histogram (approximate):",
choices = c(10, 20, 35, 50),
selected = 20),
checkboxInput(inputId = "individual_obs",
label = strong("Show individual observations"),
value = FALSE),
checkboxInput(inputId = "density",
label = strong("Show density estimate"),
value = FALSE),
plotOutput(outputId = "main_plot", height = "300px"),
# Display this only if the density is shown
conditionalPanel(condition = "input.density == true",
sliderInput(inputId = "bw_adjust",
label = "Bandwidth adjustment:",
min = 0.2, max = 2, value = 1, step = 0.2))
)
server.R
library(shiny)
function(input, output) {
output$main_plot <- renderPlot({
hist(faithful$eruptions,
probability = TRUE,
breaks = as.numeric(input$n_breaks),
xlab = "Duration (minutes)",
main = "Geyser eruption duration")
if (input$individual_obs) {
rug(faithful$eruptions)
}
if (input$density) {
dens <- density(faithful$eruptions,
adjust = input$bw_adjust)
lines(dens, col = "blue")
}
})
}