Installing and Loading Packages

library(leaflet)
## Warning: package 'leaflet' was built under R version 4.0.2

Creating the Map of India

You can also embed plots, for example:

india <- leaflet() %>%
     addTiles() %>% 
addMarkers(lat=28.6129, lng=77.1025, popup="Delhi") %>%
     addMarkers(lat=17.3850,lng=78.4867, popup="Hyderabad") %>%
     addMarkers(lat=19.0760, lng=72.8777, popup="Mumbai") %>%
     addMarkers(lat=12.9716,lng=77.594, popup="Bengaluru") %>%
     addMarkers(lat=11.0168,lng=76.9558, popup="Coimbatore") %>%
     addMarkers(lat=33.7782,lng=76.5762, popup="Jammu and Kashmir") #%>%
#setView (lat=20.5738, lng=78.9629, zoom=8) 

india  # Print the map

Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.