Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iheatmapr no longer produces a working plotly plot #6

Closed
alanocallaghan opened this issue May 30, 2017 · 2 comments
Closed

iheatmapr no longer produces a working plotly plot #6

alanocallaghan opened this issue May 30, 2017 · 2 comments

Comments

@alanocallaghan
Copy link
Contributor

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)
@AliciaSchep
Copy link
Contributor

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

@alanocallaghan
Copy link
Contributor Author

alanocallaghan commented Jun 4, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants