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=FALSEto create plain HTML and a seperate folder, then usesystemto remove that folder:Just be careful you don't have a folder named x_files, where x is the name of your plot output!