install.packages(“leaflet”) install.packages(“rmarkdown”) — title: “mm” output: html_document —

#```{r setup, include=FALSE} # Load the necessary library library(leaflet)

m <- leaflet() %>% addTiles() %>% # Add default OpenStreetMap map tiles addMarkers(lng=174.768, lat=-36.852, popup=“The birthplace of R”) m # Print the map — title: Leaflet, R, Markdown, Jekyll and GitHub subtitle: Make it work in 6 steps - a short tutorial tags: [R,leaflet,Jekyll, html, maps] header_img: https://dieghernan.github.io/assets/figs/20190520_imgpost.webp leafletmap: true always_allow_html: yes last_modified_at: 2021-05-30 output: md_document: variant: gfm preserve_yaml: true —