-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.R
51 lines (43 loc) · 1.1 KB
/
install.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
51
## install script for R pkgs
install.packages("BiocManager")
sc_pkgs <- c(
"Canopy",
"destiny",
"edgeR",
"GenomicRanges",
"irlba",
"latex2exp",
"limma",
"MultiAssayExperiment",
"org.Hs.eg.db",
"org.Mm.eg.db",
"neutralitytestr",
"pcaMethods",
"RCurl",
"Rtsne",
"scater",
"scran",
"slalom",
"variancePartition",
"vcfR"
)
pkgs <- c(sc_pkgs)
ap.db <- available.packages(contrib.url(BiocManager::repositories()))
ap <- rownames(ap.db)
pkgs_to_install <- pkgs[pkgs %in% ap]
# do not reinstall packages that are already installed in the image
ip.db <- installed.packages()
ip <- rownames(ip.db)
pkgs_to_install <- pkgs_to_install[!(pkgs_to_install %in% ip)]
BiocManager::install(pkgs_to_install)
devtools::install_github("PMBio/cardelino")
devtools::install_github("kgori/sigfit", build_opts = c("--no-resave-data", "--no-manual"))
## just in case there were warnings, we want to see them
## without having to scroll up:
warnings()
if (!is.null(warnings()))
{
w <- capture.output(warnings())
if (length(grep("is not available|had non-zero exit status", w)))
quit("no", 1L)
}