I want create leaflet map with some markers. This works well with HTML output, but I also want to send a pdf to some participants who like to have a hard copy.
It works well for html output, but I get a grey canvas around the map in pdf mode. I tried to change width and fig.width and so on, with no real success.
Example file test.Rmd
---
output:
pdf_document: default
html_document: default
---
## Test RMarkup file
```{r echo=FALSE}
library(leaflet)
leaflet() %>%
addTiles %>%
setView(lng = 13.7463, lat = 51.0628, zoom = 12) %>%
addMarkers(lng = 13.7444, lat = 51.06162,
options = markerOptions(title = "Terence Hill Ice Saloon"))
```
PDF output with grey canvas

