Is there any way to show a wordcloud2 in Rmarkdown as a PDF or Word file?
问题 I'm trying to show a wordcloud2 wordcloud, but it only works in an html-knitted Rmd file. This works: --- title: "Untitled" output: html_document --- ```{r wordcloud} library(wordcloud2) wordcloud2(demoFreq) ``` But this does not: --- title: "Untitled" output: pdf_document --- ```{r wordcloud} library(wordcloud2) wordcloud2(demoFreq) ``` It will knit with always_allow_html: yes in the YAML, but the wordcloud doesn't show up: --- title: "Untitled" output: pdf_document always_allow_html: yes --