diff --git a/NEWS.md b/NEWS.md index 88e99e928..3a348a4e8 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,7 @@ # pak (development version) +* Use `use_bioconductor` configuration option when creating cache in `R/cache.R` (https://github.com/r-lib/pak/issues/295, @meztez). + # pak 0.8.0 * `pkg_deps()` now accepts a vector of package names. diff --git a/R/cache.R b/R/cache.R index 8a9a9a3c4..0fb87a235 100644 --- a/R/cache.R +++ b/R/cache.R @@ -160,7 +160,8 @@ meta_summary_internal <- function() { cmc <- pkgcache::cranlike_metadata_cache$new( platforms = pkgdepends::current_config()$get("platforms"), cran_mirror = pkgdepends::current_config()$get("cran_mirror"), - r_version = pkgdepends::current_config()$get("r_versions") + r_version = pkgdepends::current_config()$get("r_versions"), + bioc = pkgdepends::current_config()$get("use_bioconductor") ) ret <- cmc$summary() list( @@ -207,7 +208,8 @@ meta_list_internal <- function(pkg) { cmc <- pkgcache::cranlike_metadata_cache$new( platforms = pkgdepends::current_config()$get("platforms"), cran_mirror = pkgdepends::current_config()$get("cran_mirror"), - r_version = pkgdepends::current_config()$get("r_versions") + r_version = pkgdepends::current_config()$get("r_versions"), + bioc = pkgdepends::current_config()$get("use_bioconductor") ) cmc$list(packages = pkg) } @@ -241,7 +243,8 @@ meta_update_internal <- function() { cmc <- pkgcache::cranlike_metadata_cache$new( platforms = pkgdepends::current_config()$get("platforms"), cran_mirror = pkgdepends::current_config()$get("cran_mirror"), - r_version = pkgdepends::current_config()$get("r_versions") + r_version = pkgdepends::current_config()$get("r_versions"), + bioc = pkgdepends::current_config()$get("use_bioconductor") ) cmc$update() invisible() @@ -284,7 +287,8 @@ meta_clean_internal <- function() { cmc <- pkgcache::cranlike_metadata_cache$new( platforms = pkgdepends::current_config()$get("platforms"), cran_mirror = pkgdepends::current_config()$get("cran_mirror"), - r_version = pkgdepends::current_config()$get("r_versions") + r_version = pkgdepends::current_config()$get("r_versions"), + bioc = pkgdepends::current_config()$get("use_bioconductor") ) cmc$cleanup(force = TRUE) }