I am using saveWidget to save a leaflet map as a standalone html file. This works fine locally in RStudio, but when I deploy to the shinyproxy server, it fails. Its not related to writing to the file location as to create txt files or a non-selfcontained html file works fine.
Does anyone have experience with this issue?
Here’s a bit of code to reproduce the issue:
map <- leaflet() %>% addTiles(options = list(minZoom = 2, maxZoom = 18)) %>% addProviderTiles(providers$OpenStreetMap)
saveWidget(widget=map, file="./map_test1.html", selfcontained = FALSE)
saveWidget(widget=map, file="./map_test2.html", selfcontained = TRUE)