I\'ve created a R markdown report where the sections and tabsets are dynamically created.
I have an issue where the Leaflet maps are not being generated in the output
I had a similar issue that was solved by putting the leaflet into a widget frame.
l <- leaflet() %>%
addTiles() %>%
addMarkers(map_data$Longitude, map_data$Latitude)
widgetframe::frameWidget(l, width = "100%")
This has the effect of saving html tiles for use in rendering. I'm pretty sure it just wraps the leaflet in a HMTL tag.