forked from AlexsLemonade/refinebio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qn_dependencies.R
29 lines (24 loc) · 1.05 KB
/
qn_dependencies.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
options(warn=2)
options(repos=structure(c(CRAN="https://cran.revolutionanalytics.com")))
options(Ncpus=parallel::detectCores())
devtools::install_version('doParallel', version='1.0.11')
devtools::install_version('data.table', version='1.11.0')
devtools::install_version('optparse', version='1.4.4')
devtools::install_version('lazyeval', version='0.2.1')
# devtools::install_url() requires BiocInstaller
install.packages('https://bioconductor.org/packages/3.6/bioc/src/contrib/BiocInstaller_1.28.0.tar.gz')
# Helper function that installs a list of packages based on input URL
install_with_url <- function(main_url, packages) {
lapply(packages,
function(pkg) devtools::install_url(paste0(main_url, pkg)))
}
bioc_url <- 'https://bioconductor.org/packages/3.7/bioc/src/contrib/'
bioc_pkgs <- c(
'preprocessCore_1.42.0.tar.gz'
)
install_with_url(bioc_url, bioc_pkgs)
# Load these libraries because apparently just installing them isn't
# enough to verify that they have complementary versions.
library("optparse")
library(data.table)
library("preprocessCore")