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

Multiple wordclouds not plotting in 0.2.1 #34

Closed
AdamSpannbauer opened this issue Jan 9, 2018 · 5 comments
Closed

Multiple wordclouds not plotting in 0.2.1 #34

AdamSpannbauer opened this issue Jan 9, 2018 · 5 comments

Comments

@AdamSpannbauer
Copy link
Contributor

I created a simple example before to demonstrate an issue with hover info in previous versions (#18). This example no longer works in the newest version on CRAN. When I run this only one of the 4 wordclouds is plotted in the shiny app.

I have not yet had time to investigate what's causing the issue

Small reproducible example.

library(shiny)
library(wordcloud2)
shinyApp(
  ui=shinyUI(fluidPage(
    fluidRow(
      column(width=6,align="center", wordcloud2Output("my_wc")),
      column(width=6,align="center", wordcloud2Output("my_wc2"))
    ),
    wordcloud2Output("my_wc3"),
    wordcloud2Output("my_wc4")
  )),
  server=shinyServer(function(input,output,session){
    output$my_wc  = renderWordcloud2(wordcloud2(demoFreq))
    output$my_wc2 = renderWordcloud2(wordcloud2(demoFreq))
    output$my_wc3 = renderWordcloud2(wordcloud2(demoFreq))
    output$my_wc4 = renderWordcloud2(wordcloud2(demoFreq))
  })
)
@AdeelK93
Copy link
Contributor

Updated #32 to fix this, it's an issue with how the chart object is returned in the R code

@AdamSpannbauer
Copy link
Contributor Author

this should be fixed now that #32 has been merged

@rfsaldanha
Copy link

The reproducible example from @AdamSpannbauer does not work with version 0.2.2

@AdamSpannbauer
Copy link
Contributor Author

@rfsaldanha what browser are you using?

The example runs fine for me in the following broswers:

  • Firefox 64.0.2
  • Chrome 71.0.3578.98
  • Safari 12.0.2

abridged sessionInfo():

R version 3.5.2 (2018-12-20)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Mojave 10.14.2

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     

other attached packages:
[1] wordcloud2_0.2.2 shiny_1.2.0

@rfsaldanha
Copy link

@AdamSpannbauer I update some packages and worked. Sorry for troubling you.

mrustl added a commit to KWB-R/pkgmeta that referenced this issue Feb 1, 2019
- wordclould 0.2.1 has an issue only rendering one wordcloud. THis is fixed in the dev version from Github (Lchiffon/wordcloud2#34)
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

3 participants