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

HTML widgets are not working very well #11

Open
jjchern opened this issue Jul 4, 2015 · 3 comments
Open

HTML widgets are not working very well #11

jjchern opened this issue Jul 4, 2015 · 3 comments
Labels
bug an unexpected problem or unintended behavior widgets widgets support

Comments

@jjchern
Copy link

jjchern commented Jul 4, 2015

I tried including html widgets in a revealjs Rmd file, but some of the widgets are not working very well. In particular, it seems leaflet is not working at all, and d3heatmap also has some wired performance.

Here is a test Rmd file: https://gist.github.com/jjchern/b8474fca7f0cdc9b88f7.

Session Information:

> sessionInfo()
R version 3.1.2 (2014-10-31)
Platform: x86_64-apple-darwin13.4.0 (64-bit)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
 [1] colorspace_1.2-6 digest_0.6.8     ggplot2_1.0.1    grid_3.1.2       gtable_0.1.2     htmltools_0.2.6 
 [7] magrittr_1.5     MASS_7.3-41      munsell_0.4.2    plyr_1.8.3       proto_0.3-10     Rcpp_0.11.6     
[13] reshape2_1.4.1   revealjs_0.5     rmarkdown_0.7    scales_0.2.5     stringi_0.5-5    stringr_1.0.0   
[19] tools_3.1.2      yaml_2.1.13     

I'd also like to know if there's a way to align a widget, say something like fig.align = 'center' that one can specify for a code chunk. Thank you.

@wbuchanan
Copy link

I've had similar problems with rendering dygraphs objects with this library. In the browser, if I view source code, it causes the graph to render correctly; However, if there there dygraphs on multiple consecutive slides there isn't any good way to get all of the graphs to render correctly and allow navigation simultaneously.

@chrjangit
Copy link

Same issue. A workaround with...
savewidget(widget=m, file="theleafmap.html", selfcontained=TRUE)
...and then...
iframe src="theleafmap.html" width=100% height=100% allowtransparency="true"> </iframe
...works but I need the resulting presentation to be self-contained, and the iframe will be a link unfortunately (not part of main file).

Thanks for the really great template for RStudio.

@ero
Copy link

ero commented Dec 4, 2015

Same issue.

saveWidget works as it should, full responsive behavior, but while rendering multiple dygraph widgets in .Rmd looses responsiveness.

Any new solutions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior widgets widgets support
Projects
None yet
Development

No branches or pull requests

6 participants