小编fi1*_*d18的帖子

如何通过 Shinyheatmaply 部署交互式热图

我正在尝试将交互式热图部署为闪亮的应用程序,但不仅仅是交互式热图,而是 Shinyheatmaply 的精美热图,但是当我运行 deployapp 时,什么也没有发生

这是我的用户界面

library(shiny)
library(heatmaply)
library(shinyHeatmaply)
data(mtcars)
shinyUI(fluidPage(
    titlePanel("Interactive heatmap"),
    fluidRow(plotlyOutput("heatmap"))
))
Run Code Online (Sandbox Code Playgroud)

这是我的服务器

library(shiny)
library(heatmaply)
library(shinyHeatmaply)
data(mtcars)
shinyServer(function(input,output) {
    output$heatmap <- if(interactive()){
data(mtcars)
launch_heatmaply(mtcars)
}

    })
Run Code Online (Sandbox Code Playgroud)

通过跑步

rsconnect::deployApp("/Users/temporal.UOS-12599/Desktop/New folder") 
Run Code Online (Sandbox Code Playgroud)

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 …
Run Code Online (Sandbox Code Playgroud)

r shiny heatmaply

3
推荐指数
1
解决办法
1291
查看次数

标签 统计

heatmaply ×1

r ×1

shiny ×1