当我运行以下app.R文件时,一切都运行得很好。
library(shinydashboard)
ui <- dashboardPage(
dashboardHeader(title = "Basic dashboard"),
dashboardSidebar(),
dashboardBody(
# Boxes need to be put in a row (or column)
fluidRow(
box(plotOutput("plot1", height = 250)),
box(
title = "Controls",
sliderInput("slider", "Number of observations:", 1, 100, 50)
)
)
)
)
server <- function(input, output) {
set.seed(122)
histdata <- rnorm(500)
output$plot1 <- renderPlot({
data <- histdata[seq_len(input$slider)]
hist(data)
})
}
shinyApp(ui, server)它看起来是这样的:

但是,当我将它部署到运行在亚马逊网络服务实例上的shiny-server上时,它不能正确呈现。我认为这一定是shinydashboard的问题,因为我在服务器上运行了其他闪亮的应用程序,它们工作得很好。唯一有这个问题的应用是我正在尝试部署的使用shinydashboard的应用。它安装在服务器上,所以我不确定我可能遗漏了什么。下面是它在服务器上的样子:

EDIT::它似乎在shinyapps.io上也能完美工作。所以一定是我的AWS Ubuntu服务器和shinydashboard出了问题。我已经安装了它和它的‘0.7.1’包版本。这会是什么呢?
闪亮的服务器日志中没有任何内容。这是app-log

发布于 2019-03-30 11:44:33
服务器/应用程序日志中有什么吗?
/var/log/shiny-server.log
/var/log/shiny-server/*.log我认为直方图框也应该呈现,除非缺少括号/逗号?
https://stackoverflow.com/questions/55422906
复制相似问题