R闪亮-完美应用获胜的奇怪问题';不部署
编辑R闪亮-完美应用获胜的奇怪问题';不部署,r,shiny,rstudio,shiny-server,R,Shiny,Rstudio,Shiny Server,编辑 已解决:这是他们现在已修复的闪亮服务器的问题 我有一个奇怪的问题,我完全复制了应用程序,示例应用程序无法为我正确部署。该应用程序在本地按预期工作,但当我部署到shinyapps.io时,该应用程序仅加载ui,甚至存在缺陷 用户界面: ## ui.R library(shiny) shinyUI(fluidPage( # Application title titlePanel("Old Faithful Geyser Data"), # Sidebar with
已解决:这是他们现在已修复的闪亮服务器的问题
我有一个奇怪的问题,我完全复制了应用程序,示例应用程序无法为我正确部署。该应用程序在本地按预期工作,但当我部署到
shinyapps.io
时,该应用程序仅加载ui,甚至存在缺陷
用户界面:
## ui.R
library(shiny)
shinyUI(fluidPage(
# Application title
titlePanel("Old Faithful Geyser Data"),
# Sidebar with a slider input for number of bins
sidebarLayout(
sidebarPanel(
sliderInput("bins",
"Number of bins:",
min = 1,
max = 50,
value = 30)
),
# Show a plot of the generated distribution
mainPanel(
plotOutput("distPlot")
)
)
))
服务器
## server.R
library(shiny)
shinyServer(function(input, output) {
output$distPlot <- renderPlot({
# generate bins based on input$bins from ui.R
x <- faithful[, 2]
bins <- seq(min(x), max(x), length.out = input$bins + 1)
# draw the histogram with the specified number of bins
hist(x, breaks = bins, col = 'darkgray', border = 'white')
})
})
##server.R
图书馆(闪亮)
shinyServer(功能(输入、输出){
输出$distPlot shinyapp.io服务器今天出现问题,可能与此相关。当前,服务器已关闭。是的,谢谢。这是服务器的问题