save leaflet map with saveWidget

85 views
Skip to first unread message

Vladislav Fridkin

unread,
Oct 6, 2016, 8:47:12 PM10/6/16
to Shiny - Web Framework for R
How can htmlwidgets::saveWidget be used to save a leaflet map after the map has been 'modified' through leafletProxy calls?

So for example, within the same code block this works:
m <- leaflet() %>% ...
saveWidget(m, "temp.html"...)

However after several leafletProxy calls to add markers, etc, how can the map widget be referred to in saveWidget?
Reply all
Reply to author
Forward
0 new messages