ropensci/iheatmapr

iheatmapr no longer produces a working plotly plot

Closed this issue · 2 comments

The yaml file specifying plotly's htmlwidget dependencies is empty in recent versions (plotly/plotly.R@183006c). This code in as_plotly() should fix it (note plotly:::plotlyMainBundle()... it might be worthwhile asking Carson to export that, or some way of producing the plots manually.

I'm submitting a PR but feel free to check it over and/or ask the ropensci team first.

createWidget(name = "plotly",
             x = out,
             width = out$layout$width,
             height = out$layout$height,
             sizingPolicy = sizingPolicy(browser.fill = TRUE,
                                         defaultWidth = "100%",
                                         defaultHeight = 400),
             dependencies = plotly:::plotlyMainBundle(),
             preRenderHook = plotly_build)

Closed, for more discussion, see #7 and #9. Thanks again for bringing up this issue!