... | ... |
@@ -10,8 +10,9 @@ The large scale multiple testing inherent to high throughput biological data nec |
10 | 10 |
You can install the package as follows: |
11 | 11 |
|
12 | 12 |
```{r} |
13 |
-source("https://bioconductor.org/biocLite.R") |
|
14 |
-biocLite("OPWeight") |
|
13 |
+if (!requireNamespace("BiocManager", quietly=TRUE)) |
|
14 |
+ install.packages("BiocManager") |
|
15 |
+BiocManager::install("OPWeight") |
|
15 | 16 |
``` |
16 | 17 |
|
17 | 18 |
|
... | ... |
@@ -3,8 +3,9 @@ knitr::opts_chunk$set(tidy = FALSE, cache = FALSE, autodep = TRUE) |
3 | 3 |
|
4 | 4 |
## ----loadlibs, message=FALSE, warning=FALSE------------------------------ |
5 | 5 |
# install OPWeight package |
6 |
-source("https://bioconductor.org/biocLite.R") |
|
7 |
-biocLite("OPWeight", suppressUpdates=TRUE) |
|
6 |
+if (!requireNamespace("BiocManager", quietly=TRUE)) |
|
7 |
+ install.packages("BiocManager") |
|
8 |
+BiocManager::install("OPWeight", suppressUpdates=TRUE) |
|
8 | 9 |
|
9 | 10 |
# load packages |
10 | 11 |
library("OPWeight") |
... | ... |
@@ -44,8 +44,9 @@ Load required libraries |
44 | 44 |
|
45 | 45 |
```{r loadlibs, message=FALSE, warning=FALSE} |
46 | 46 |
# install OPWeight package |
47 |
-source("https://bioconductor.org/biocLite.R") |
|
48 |
-biocLite("OPWeight", suppressUpdates=TRUE) |
|
47 |
+if (!requireNamespace("BiocManager", quietly=TRUE)) |
|
48 |
+ install.packages("BiocManager") |
|
49 |
+BiocManager::install("OPWeight", suppressUpdates=TRUE) |
|
49 | 50 |
|
50 | 51 |
# load packages |
51 | 52 |
library("OPWeight") |