forked from Sage-Bionetworks/data_curator
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall-pkgs.R
50 lines (47 loc) · 1.41 KB
/
install-pkgs.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
50
cran <- c(
"ellipsis==0.3.2",
"shiny==1.7.1",
"fontawesome==0.3.0",
"httr==1.4.2",
"yaml==2.2.1",
"shinyjs==2.1.0",
"dplyr==1.0.7",
"shinythemes==1.2.0",
"shinydashboard==0.7.2",
"stringr==1.4.0",
"DT==0.20",
"jsonlite==1.7.3",
"reticulate==1.23",
# "shinydashboardPlus==2.0.3",
"waiter==0.2.5",
"readr==2.1.1",
"sass==0.4.1",
"remotes==2.4.2",
"rsconnect==1.1.0",
"png==0.1.7",
"tidyr==1.1.4",
"data.table==1.14.2",
"igraph==1.2.11",
"networkD3==0.4",
"data.tree==1.0.0",
"r2d3==0.2.6"
)
gh <- c(
"dreamRs/shinypop",
# switch back to use cran install 'shinydashboardPlus'
# once they make a release to fix icons
# https://github.com/RinteRface/shinydashboardPlus
"RinteRface/shinydashboardPlus"
)
# The binary package distributions from R Studio dramatically speed up installation time
# For Ubuntu 18.04 (Bionic) it's https://packagemanager.rstudio.com/all/__linux__/bionic/latest
# For Ubuntu 20.04 (Focal) it's https://packagemanager.rstudio.com/all/__linux__/focal/latest
# For Ubuntu 22.04 (Jammy) it's https://packagemanager.rstudio.com/all/__linux__/jammy/latest
options(repos = c(REPO_NAME = "https://packagemanager.rstudio.com/all/__linux__/jammy/latest", getOption("repos")))
install.packages("remotes")
invisible(
lapply(strsplit(cran, "=="), function(cran_pkg) {
remotes::install_version(cran_pkg[1], version = cran_pkg[2])
})
)
remotes::install_github(gh)