local_gits_behind_bioc: check all repos in a folder for version entry less than the...

View source: R/coreset.R

local_gits_behind_biocR Documentation

check all repos in a folder for version entry less than the one reported by BiocPkgTools::biocPkgList

Description

check all repos in a folder for version entry less than the one reported by BiocPkgTools::biocPkgList

Usage

local_gits_behind_bioc(gitspath, biocversion = "3.11")

Arguments

gitspath

character(1) folder where repos for packages are cloned

biocversion

character(1) defaults to "3.11"

Value

a character vector of names of packages whose git sources are out of date

Note

DESCRIPTION will be read from each folder in gitspath.

Examples

ps = PackageSet(c("parody", "ensembldb")) # bioc_coreset()[c(3,8)]) # two simple packages
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)
setwd(curd)
unlink(tf)

vjcitn/BiocBuildTools documentation built on March 15, 2024, 4:19 a.m.