partial_bundle() not working with Shiny
未关闭
还没有人认领这个 Issue。
bug
- 主要语言
- R
- 星标
- 2.7k
- 派生
- 641
- PR 合并指标
- 30 天内没有已合并 PR
描述
I've been trying to use partial_bundle() so that the plotly.js distributed is smaller and my Shiny created website loads faster
When I try to use partial bundle the plot is not showing. Using chrome dev tools it shows "ReferenceError: Plotly is not defined" in plotly.js line 162
Here is a minimal example:
library(shiny)
library(plotly)
ui <- fluidPage(
fluidRow(plotlyOutput("distPlot"))
)
server <- function(input, output) {
output$distPlot <- renderPlotly({
p <- plot_ly(x = 1:10, y = 1:10)%>% partial_bundle()
})
}
shinyApp(ui = ui, server = server)
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 issue 中的最小 Shiny 示例开始,复现来自 plotly.js 的浏览器“Plotly is not defined”错误。跟踪 partial_bundle() 如何集成到 Shiny 输出中;当使用较小的 bundle 时,图表能够在 Shiny 中渲染且不再出现该错误,即表示 issue 已完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, r
- 领域
- data-visualization, web-dev
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100