use bco2df to acquire limited data frames from BiocCheck applied to packages

get_bcc(
  sources.folder,
  bcchecks.destination,
  bcobj.destination,
  BPPARAM = bpparam(),
  BPOPTIONS = bpoptions()
)

Arguments

sources.folder

character(1) path to github checkouts of Bioc packages

bcchecks.destination

character(1) path to a writeable folder where BiocCheck logs are written

bcobj.destination

character(1) path to a folder where RDS files with data frames are written

BPPARAM

defaults to bpparam()

BPOPTIONS

defaults to bpoptions()

Examples

ps = PackageSet("parody")
#> 'getOption("repos")' replaces Bioconductor standard repositories, see
#> '?repositories' for details
#> 
#> replacement repositories:
#>     CRAN: https://cloud.r-project.org
tf = tempfile()
td = dir.create(tf)
populate_local_gits(ps, tf)
dir.create(bcdest <- tempfile("bcd"))
dir.create(bcodest <- tempfile("bco"))
get_bcc(tf, bcdest, bcodest)
#> [1] "parody"
#> [1] 1
#> [1] "/tmp/RtmpDgwcWi/file3b8f8625b37e2/parody"
#> INFO [2022-11-16 17:58:00] 'x' = /tmp/RtmpDgwcWi/file3b8f8625b37e2/parody
#> ERROR [2022-11-16 17:58:00] 'x' = /tmp/RtmpDgwcWi/file3b8f8625b37e2/parody
readRDS(dir(bcodest, full=TRUE))
#> $errors
#>    type message commit_date check_date
#> 1 error    none  2022-11-01 2022-11-16
#> 
#> $warnings
#>                                   type
#> 1                   checkVersionNumber
#> 2 checkDescriptionNamespaceConsistency
#> 3                 checkForValueSection
#> 4                 checkForValueSection
#>                                                                  message
#> 1                   * WARNING: y of x.y.z version should be odd in devel
#> 2           * WARNING: Import stats in DESCRIPTION as well as NAMESPACE.
#> 3 * WARNING: Add non-empty \\value sections to the following man pages: 
#> 4                                       man/box.scale.Rd, man/tukeyor.Rd
#>   commit_date check_date
#> 1  2022-11-01 2022-11-16
#> 2  2022-11-01 2022-11-16
#> 3  2022-11-01 2022-11-16
#> 4  2022-11-01 2022-11-16
#> 
if (FALSE) {
set.seed(1234) # we shuffle packages to avoid restarting on a bad one
bcchecks.destination = dir.create(tempfile("bccheck"))
bcobj.destination = dir.create(tempfile("bcobj"))
spar = BiocParallel::SnowParam(3, threshold="DEBUG")
BiocParallel::bplog(spar) = TRUE
# make 777 BiocParallel::bplogdir(spar) = "~/BBS_space/BPLOGS_bc"
BiocParallel::bptimeout(spar) = 600
BiocParallel::register(spar)
# get_bcc(  ...
}