How do I force saveWidget to create a single file outside of RStudio?
In RStudio, I can save my HTML widget to a single file with: htmlwidgets::saveWidget(x,"filename.html",selfcontained=TRUE) When running an R script with the above line through Windows Task Scheduler (which calls Rscript.exe), a multi-file HTML is generated (i.e. an HTML file with an associated directory of referenced stuff). Using RGui also fails to generate a single-file HTML. These are the lines from an RGui implementation that replicates the issue: library(leaflet) library(htmlwidgets) map <- leaflet::leaflet() %>% addTiles() %>% setView(lng=172.4,lat=-41,zoom=6) saveWidget(map,file="delete
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.