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

Description Usage Arguments Value Note Examples

View source: R/coreset.R

Description

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

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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/BiocBBSpack documentation built on Nov. 21, 2020, 1:18 p.m.