#' Load geospatial packages
#'
#' Automatically loads geospatial suite of packages for analysis, including
#' sf, tigris, tidycensus, leaflet, and more.
#' @return
#' @export
#'
#' @examples
#' load_geo_packages()
load_geo_packages <- function() {
pacman::p_load(sf,
tigris,
tidycensus,
mapview,
leaflet,
rmapshaper,
leaflet.extras,
leaflet.extras2,
leaflegend
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.