Skip to content

Commit

Permalink
Reduce filters used in available,packages call
Browse files Browse the repository at this point in the history
See rstudio#431 - this change supports packages where an old version is installed and where a current version is not available
  • Loading branch information
hollywoof authored Jun 1, 2020
1 parent 40c162b commit aced245
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/dependencies.R
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ snapshotDependencies <- function(appDir, implicit_dependencies=c()) {
# get Bioconductor repos if any
biocRepos = repos[grep('BioC', names(repos), perl=TRUE, value=TRUE)]
if (length(biocRepos) > 0) {
biocPackages = available.packages(contriburl = contrib.url(biocRepos, type = "source"), type = "source")
biocPackages = available.packages(contriburl = contrib.url(biocRepos, type = "source"), type = "source", filters = c("duplicates"))
} else {
biocPackages = c()
}
repo.packages <- available.packages(contriburl = contrib.url(repos, type = "source"), type = "source")
repo.packages <- available.packages(contriburl = contrib.url(repos, type = "source"), type = "source", filters = c("duplicates"))
named.repos <- name.all.repos(repos)
repo.lookup <- data.frame(
name = names(named.repos),
Expand Down

0 comments on commit aced245

Please sign in to comment.