diff --git a/R/misc.R b/R/misc.R index c179cdf..7ebcd51 100644 --- a/R/misc.R +++ b/R/misc.R @@ -266,8 +266,9 @@ is.list.of <- function(x, ctype) { #' @keywords internal bcinstall <- function(pkg="dada2", suppressUpdates=TRUE) { - source("https://bioconductor.org/biocLite.R") - biocLite(pkg, suppressUpdates=suppressUpdates) + if (!requireNamespace("BiocManager", quietly=TRUE)) + install.packages("BiocManager") + BiocManager::install(pkg, suppressUpdates=suppressUpdates) } #' @keywords internal diff --git a/README.md b/README.md index eb678d1..63fe337 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,9 @@ The dada2 package binaries are available through Bioconductor: ```S ## try http:// if https:// URLs are not supported -source("https://bioconductor.org/biocLite.R") -biocLite("dada2") +if (!requireNamespace("BiocManager", quietly=TRUE)) + install.packages("BiocManager") +BiocManager::install("dada2") ``` In order to install dada2 from source (and get the latest and greatest new features) see our [installation from source instructions](https://benjjneb.github.io/dada2/dada-installation.html).