-
Notifications
You must be signed in to change notification settings - Fork 0
/
package_list.R
27 lines (23 loc) · 1.21 KB
/
package_list.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
packages <- c("devtools","ggplot2","nnet","tmle","MASS","purrr","tidyverse","data.table","SuperLearner","reshape2","origami","tictoc","weights","grid","car","latex2exp","cobalt", "WeightIt","VGAM","extraDistr","survival","survminer","survRM2")
super.learner <- TRUE
dependencies <- FALSE # data.table, stringi, HMisc dependencies might be needed for SuperLearner libraries
if(super.learner){
packages <- c(packages, c("glmnet","ranger","rpart","nnls","xgboost"))
}
if(dependencies){
remove.packages("data.table") # First remove the current version
install.packages("data.table", type = "source", repos = "https://Rdatatable.gitlab.io/data.table")
install.packages("stringi", dependencies=TRUE, INSTALL_opts = c('--no-lock'))
install.packages(c("HMisc",packages),repos = "http://cran.us.r-project.org")
} else{
install.packages(packages,repos = "http://cran.us.r-project.org")
}
# development packages
remotes::install_github("tlverse/sl3")
remotes::install_github("jvpoulos/Rsolnp") # v1.16
# doMPI
doMPI <- FALSE
if(doMPI){
install.packages("Rmpi", dependencies=TRUE, repos = "http://cran.us.r-project.org")
install.packages("doMPI", dependencies=TRUE, repos = "http://cran.us.r-project.org")
}