The support documents for html-widgets suggest that it is possible to save a stand alone html page from an r markdown document with interactive html components intact, without relying on shiny. The documentation is located here (https://bookdown.org/yihui/rmarkdown/html-widgets.html#fn13).
Is this true? When I run an example script below from a RMD file in rstudio and save the output as a standalone web page the resulting html is no longer interactive.
---
title: "An Interactive Map"
---
Below is a map that shows the location of the
Department of Statistics, Iowa State University.
```{r out.width='100%', echo=FALSE}
library(leaflet)
leaflet() %>% addTiles() %>%
setView(-93.65, 42.0285, zoom = 17) %>%
addPopups(
-93.65, 42.0285,
'Here is the <b>Department of Statistics</b>, ISU'
)
```