Skip to content

Wordcloud failing in Rmarkdown tabsets #65

@QuentinB02

Description

@QuentinB02

Hello,

I am facing what seems like a bug while using the worcloud2 package with Rmarkdown : displaying one or multiple workclouds on the same page works fine, as long as I do not make use of tabs (namely tabsetPanel from Shiny). Specifically any wordcloud that's not on the first tab will not be shown.

Here is a reproducible Rmd example (without header formatting, but I also attached the Rmd version to this issue) :


title: "Wordcloud tabset error in Rmd"
output: html_document

library(wordcloud2)
library(shiny)
wordcloud = wordcloud2::wordcloud2(data.frame(word = c("foo", 
                                                       "bar", 
                                                       "foobar"),
                                              n = c(15, 
                                                    35, 
                                                    50)))
tabsetPanel(
  tabPanel("test", wordcloud),
  tabPanel("test2", wordcloud)
)

wordcloud_tabset_error.zip

Upon knitting, the first wordcloud is showing, but not the second one...
Any idea why that might be? Thanks in advance for any help on the matter, and thanks for all the amazing work on this package.

PS : I installed the latest package version from Github, not the one on CRAN

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions