-
Notifications
You must be signed in to change notification settings - Fork 107
Description
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)
)
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