-
Notifications
You must be signed in to change notification settings - Fork 3
/
install_packages.r
35 lines (35 loc) · 1.12 KB
/
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
24
25
26
27
28
29
30
31
32
33
34
35
required_packages <- c("ggplot2",
"gridExtra",
"RColorBrewer",
"GGally",
"lattice",
"dplyr",
"knitr",
"quantreg",
"pls",
"ISLR",
"psych",
"plotly",
"glmnet",
"MatchIt",
"ATE",
"nlme",
"lme4",
"lattice",
"VGAM",
"MASS",
"glmmML",
"rgeos",
"rgdal",
"RColorBrewer",
"mice",
"bife",
"survival",
"rbenchmark")
missing_packages <-
required_packages[!(required_packages %in% installed.packages()[, "Package"])]
if (length(missing_packages) > 0) {
install.packages(missing_packages)
}
rm("missing_packages")
rm("required_packages")