#How to run Shiny app #Download Distribution.zip, save in your R home directory #Navigate to Distribution.zip, right click, select Extract All, click Extract #Open R Studio #To load required packages, type the following into the Console pane (bottom left): list.of.packages <- c("leaflet","RColorBrewer","scales","lattice","dplyr","ggplot2", "shiny") #Checking missing packages from list new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])] #Install missing packages if(length(new.packages)) install.packages(new.packages, dependencies = TRUE) #Load shiny package library(shiny) #Launch the app runApp("Distribution/Distribution") #if a leaflet error occurs, manually load leaflet library(leaflet)