REmap icon indicating copy to clipboard operation
REmap copied to clipboard

在Rmarkdown中不能使用

Open zigner-song opened this issue 6 years ago • 0 comments

能否考虑用一个只返回静态图片的功能? 参考一下在Rmardown里添加wordcloud2结果的方法

https://stackoverflow.com/questions/46105141/how-to-render-output-of-wordcloud2-in-rmarkdown

    library(htmlwidgets)
    install.packages("webshot")
    webshot::install_phantomjs()
    library(wordcloud2)
    hw = wordcloud2(demoFreq,size = 3)
    saveWidget(hw,"1.html",selfcontained = F)
    webshot::webshot("1.html","1.png",vwidth = 700, vheight = 500, delay =10)

zigner-song avatar Jul 14 '18 08:07 zigner-song