Overview:

Create a web page using R Markdown that features a map created with Leaflet.

Host your webpage on either GitHub Pages, RPubs, or NeoCities.

Your webpage must contain the date that you created the document, and it must contain a map created with Leaflet.

Load required packages:

library(leaflet)

Outer Banks, North Carolina

map <- leaflet() %>%
  addTiles() %>%   
  addMarkers(lat=35.250721, lng=-75.528557, popup="Cape Hatteras Lighthouse")%>% 
  addMarkers(lat=36.014484, lng=-75.667432, popup="Wright Brothers National Memorial")%>%
  addMarkers(lat=35.818724, lng=-75.562766, popup="Bodie Island Lighthouse")%>%
  addMarkers(lat=35.596240, lng=-75.464507, popup="Chicamacomico Lifesaving Station")%>%
  addMarkers(lat=35.109257, lng=-75.985400, popup="Ocracoke Lighthouse")
map