-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbooth.ml.packages.R
50 lines (43 loc) · 1.28 KB
/
booth.ml.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
packageNames = c("MASS",
"ISLR",
"animation",
"ElemStatLearn",
"glmnet",
"textir",
"nnet",
"methods",
"statmod",
"stats",
"graphics",
"RCurl",
"jsonlite",
"tools",
"utils",
"data.table",
"gbm",
"ggplot2",
"randomForest",
"tree",
"class",
"kknn",
"e1071",
"data.table",
"recommenderlab"
)
for (pkgName in packageNames) {
if (! (pkgName %in% rownames(installed.packages()))) {
install.packages(pkgName,
dependencies=TRUE,
repos='http://cran.rstudio.com')
}
}
update.packages(ask=FALSE)
if (! ("h20" %in% rownames(installed.packages()))) {
# Now we download, install and initialize the H2O package for R.
if (packageVersion("h2o") < "3.5.0.3232") {
install.packages("h2o",
type="source",
repos=(c("http://h2o-release.s3.amazonaws.com/h2o/master/3232/R"))
)
}
}