在README.md中插入传单小部件
我希望在R-Packages存储库()的自述页面中包含一个映射,但我不知道这是否真的可行。例如,一个例子:在README.md中插入传单小部件,r,github,r-package,r-leaflet,R,Github,R Package,R Leaflet,我希望在R-Packages存储库()的自述页面中包含一个映射,但我不知道这是否真的可行。例如,一个例子: --- output: github_document: html_preview: false --- ```{r,echo=FALSE} knitr::opts_chunk$set( collapse=TRUE, comment="#>", fig.path="man/figures/" ) ``` How to
---
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)
```
在yaml头中有一个包含始终\u允许\u html:true
的提示,但它没有获得所需的行为