-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathpackages.R
24 lines (19 loc) · 1.1 KB
/
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
24
# ---------------------------------------------------------------------------------------
# legislatoR
# Sascha Göbel, Simon Munzert
# Script: Packages
# December 2017
# ---------------------------------------------------------------------------------------
#### INSTALL AND LOAD PACKAGES ==========================================================
# install pacman package if not installed -----------------------------------------------
suppressWarnings(if (!require("pacman")) install.packages("pacman"))
# load packages and install if not installed --------------------------------------------
pacman::p_load(stringr, lubridate, magrittr, plyr, dplyr, eeptools, httr,
rvest, toOrdinal, mpoly, data.table, zoo, jsonlite, R.utils,
WikidataR, tibble, pageviews, wikipediatrend, padr, gtools,readxl, haven,
tidyselect, reshape2, ggplot2, extrafont, finalfit, purrr, vroom,
install = TRUE,
update = FALSE)
# show loaded packages ------------------------------------------------------------------
cat("loaded packages\n")
print(pacman::p_loaded())