I an using R
to draw heatmap. Heatmaply
and htmlwidget
were installed. Fox example i exec following code:
library("htmlwidgets")
library("heatmaply")
heatmaply(mtcars) %>% saveWidget(file="test.html")
This always generate a test.html file and a test_files folder, but i want the test.html only. I try saveWidget(file="test.html",,selfcontained=TRUE)
. This just place the js library in the test.html, making test.html too big.
Use
self-contained=FALSE
to create plain HTML and a seperate folder, then usesystem
to remove that folder:Just be careful you don't have a folder named x_files, where x is the name of your plot output!