Browse code

replace BiocInstaller biocLite mentions with BiocManager

LiNk-NY authored on 30/08/2018 17:53:36
Showing 4 changed files

... ...
@@ -1,7 +1,7 @@
1 1
 Package: OPWeight
2 2
 Type: Package
3 3
 Title: Optimal p-value weighting with independent information
4
-Version: 1.3.0
4
+Version: 1.3.1
5 5
 Date: 2017-02-26
6 6
 Authors@R: c(person("Mohamad", "Hasan", email =
7 7
         "[email protected]", role = c("aut", "cre")),
... ...
@@ -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")