I would like to include a map in the README page of an R-Packages repository (vegtable), but I don't know, if it is really possible. For instance one example:
---
output:
github_document:
html_preview: false
---
```{r,echo=FALSE}
knitr::opts_chunk$set(
collapse=TRUE,
comment="#>",
fig.path="man/figures/"
)
```
How to do a map:
```{r}
library(vegtable)
library(leaflet)
leaflet(Kenya_veg@header) %>%
addTiles() %>%
addCircleMarkers(lng = ~LONGITUDE, lat = ~LATITUDE, color = "red",
opacity = 0.3, radius = 1)
```
There was a hint of including always_allow_html: true
in the yaml head but it is not getting the desired behavior.