我正在尝试将交互式热图部署为闪亮的应用程序,但不是简单的交互式热图,而是shinyheatmaply的花哨热图,但当我运行部署应用程序时,什么也不会发生
这是我的ui
library(shiny)
library(heatmaply)
library(shinyHeatmaply)
data(mtcars)
shinyUI(fluidPage(
titlePanel("Interactive heatmap"),
fluidRow(plotlyOutput("heatmap"))
))
这是我的服务器
library(shiny)
library(heatmaply)
library(shinyHeatmaply)
data(mtcars)
shinyServer(function(input,output) {
output$heatmap <- if(interactive()){
data(mtcars)
launch_heatmaply(mtcars)
}
})
通过运行
rsconnect::deployApp("/Users/temporal.UOS-12599/Desktop/New folder")
他说
DONE
Uploading bundle for application: 977528...DONE
Deploying bundle: 2147989 for application: 977528 ...
Waiting for task: 621761993
building: Parsing manifest
building: Building image: 2264908
building: Installing system dependencies
building: Fetching packages
building: Installing packages
building: Installing files
building: Pushing image: 2264908
deploying: Starting instances
rollforward: Activating new instances
terminating: Stopping old instances
Application successfully deployed to https://fi1d18.shinyapps.io/new_folder/
但最后什么也没发生
编辑过的
这是要在已部署应用程序中显示的数据
> head(sample_013)
Driver snv_t_013 snv_o_013 indel_t_013 indel_o_013 Deleted_ot_013 Deleted_o_013
ABCB1 1 0 1 0 0 0 0
ACVR1B 1 0 0 0 0 0 0
ACVR2A 1 0 0 0 0 0 0
APC 1 1 1 0 0 0 0
ARID1A 1 0 0 1 1 1 0
ARID1B 1 1 1 1 1 1 1
有什么需要帮忙的吗?
https://stackoverflow.com/questions/56561144
复制相似问题