Skip to content

Commit

Permalink
Small tweak to createPropagationDB.R to work around issue in BiocManager
Browse files Browse the repository at this point in the history
  • Loading branch information
hpages committed Oct 30, 2019
1 parent 7366635 commit a5248e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utils/createPropagationDB.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ library(tools)
rvers <- paste(getRversion()$major,
getRversion()$minor,
sep=".")

biocvers <- BiocManager::version()

biocrepos <- BiocManager:::.repositories(character(), version=biocvers)

# Takes as input the value of an Imports, Depends,
# or LinkingTo field and returns a named character
Expand Down Expand Up @@ -328,7 +330,7 @@ createPropagationList <- function(outgoingDirPath, propagationDbFilePath,
"data/experiment" = "BioCexp",
"workflows" = "BioCworkflows")
bioc.apdb <<- available.packages(
contrib.url(BiocManager::repositories()[[repo.name]]),
contrib.url(biocrepos[[repo.name]]),
type="source")
bioc.apdf <<- as.data.frame(bioc.apdb, stringsAsFactors=FALSE)
bioc.ap <<- rownames(bioc.apdb)
Expand Down

0 comments on commit a5248e5

Please sign in to comment.