Skip to content

Commit 214b44d

Browse files
authored
Merge pull request #852 from SermetPekin/dev
2 parents a041d39 + 9c0cdf2 commit 214b44d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# pak (development version)
22

3+
* Setting `use_bioconductor = FALSE` (i.e. the `PKG_USE_BIOCONDUCTOR`
4+
env var, or the `pkg.use_bioconductor` option) now truly prevents
5+
any network contact with Bioconductor.
6+
37
# pak 0.9.2
48

59
* No user visible changes.

src/library/pkgcache/R/metadata-cache.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@ extract_revdeps <- function(pkgs, packages, dependencies, recursive) {
10401040
cmc__get_repos <- function(repos, bioc, cran_mirror, r_version, auth = TRUE) {
10411041
repos[["CRAN"]] <- cran_mirror
10421042
repos <- unlist(repos)
1043-
bioc_names <- bioconductor$get_repos()
1043+
bioc_names <- if (bioc) bioconductor$get_repos() else character(0L)
10441044
res <- data_frame(
10451045
name = names(repos),
10461046
url = unname(repos),

0 commit comments

Comments
 (0)