I am attempting a slickR carousel using leaflet htmlwidgets instead of images. I am following the https://metrumresearchgroup.github.io/slickR/ 'htmlwigets' section.
When I execute the following code, the carousel is blank for each slide.
library(slickR)
library(leaflet)
#Create leaflet object
l <- leaflet() %>% addProviderTiles(providers$OpenStreetMap) %>%
setView(lng = -118.03746, lat=54.04148,zoom=10)
#Save leaflet object as .html file
htmlwidgets::saveWidget(l,'leaflet.html')
#Read-in .html and copy 4 times, 1 map for each slide
slickR(c(rep(paste0(readLines('leaflet.html'),collapse='\n'),4)),
slideId = 'leaf',
slideType = rep('iframe'),
height='400px',width='100%')
In my file directory the leaflet.html saved and can open. Spinning the tires on this one - any ideas on how I can get the maps to show in the carousel?