R/coreset.R
local_gits_behind_bioc.Rd
check all repos in a folder for version entry less than the one reported by BiocPkgTools::biocPkgList
local_gits_behind_bioc(gitspath, biocversion = "3.11")
character(1) folder where repos for packages are cloned
character(1) defaults to "3.11"
a character vector of names of packages whose git sources are out of date
DESCRIPTION will be read from each folder in gitspath.
ps = PackageSet(c("parody", "ensembldb")) # bioc_coreset()[c(3,8)]) # two simple packages
#> 'getOption("repos")' replaces Bioconductor standard repositories, see
#> '?repositories' for details
#>
#> replacement repositories:
#> CRAN: https://cloud.r-project.org
tf = tempfile()
dir.create(tf)
ll = populate_local_gits(ps, tf)
curd = getwd()
setwd(tf)
pd = readLines("parody/DESCRIPTION")
pd = gsub("Version.*", "Version: 1.0", pd) # version here < version in git so need to update here
writeLines(pd, "parody/DESCRIPTION")
local_gits_behind_bioc(tf)
#> 'getOption("repos")' replaces Bioconductor standard repositories, see
#> '?repositories' for details
#>
#> replacement repositories:
#> CRAN: https://cloud.r-project.org
#> [1] "parody"
setwd(curd)
unlink(tf)