Le package pacman permet de gérer l'installation préalable, puis le chargement de packages. Voici ceux qui sont utilisés :
if (!require("pacman")) install.packages("pacman") library(pacman) pacman::p_load(here,ggplot2,ggforce,ggthemes,thematic,plotly,scales,tidyr,dplyr,lubridate,stringr,forcats,rgdal,sp,sf, rgeos,geoR,gstat,spacetime,devtools,leaflet,leaflet.extras,jsonlite,mapview,RColorBrewer, viridis,flexdashboard,fontawesome,rprojroot)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.