-
Notifications
You must be signed in to change notification settings - Fork 0
/
01-install_packages.R
23 lines (22 loc) · 1.13 KB
/
01-install_packages.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
###################################
# GIS DAY 2020 * INSTALL PACKAGES #
###################################
# Notice that these are MORE packages than the ones needed for the workshop
pkgs <- c(
# data collection and wrangling
'data.table', 'fst', 'dplyr', 'openxlsx', 'readxl', 'tidyr',
# data display
'DT', 'formattable', 'lineupjs', 'pivta', ' reactable', 'rhandsontable', 'rpivotTable',
'basictabler', 'flextable', 'gt', 'htmlTable', 'knitr', 'kableExtra', 'huxtable', 'pixiedust',
# data visualization
'ggplot2', 'ggiraph', 'ggmap', 'ggthemes', 'htmlwidgets', 'rbokeh',
'classInt', 'scales', 'paletteer',
# data presentation / deployment
'htmltools', 'rmarkdown', 'shiny', 'shinyjs', 'shinyscreenshot', 'shinyWidgets', 'xaringan',
# spatial tools
'ggmap', 'ggspatial', 'leafgl', 'leaflet', 'leaflet.extras', 'leaflet.extras2', 'leaflet.minicharts', 'leafpop', 'leafsync',
'maptools', 'mapview', 'raster', 'rgdal', 'rgeos', 'rmapshaper', 'sf', 'sp', 'tmap'
)
pkgs.not <- pkgs[!sapply(pkgs, require, char = TRUE)]
if(length(pkgs.not) > 0) install.packages(pkgs.not)
lapply(pkgs, require, char = TRUE)