use git via BiocBBSpack::getpk to retrieve sources into a folder

populate_local_gits(pkgset, gitspath)

Arguments

pkgset

instance of PackageSet

gitspath

character(1) folder to be created if it does not exist

Value

invisibly, the list of folders created under gitspath

Examples

ps = PackageSet(c("BiocFileCache", "ensembldb")) #bioc_coreset()[c(3,8)]) # two example packages
#> 'getOption("repos")' replaces Bioconductor standard repositories, see
#> '?repositories' for details
#> 
#> replacement repositories:
#>     CRAN: https://cloud.r-project.org
td = tempdir()
ll = populate_local_gits(ps, td)
ll
#> [1] "BiocFileCache"                   "downlit"                        
#> [3] "ensembldb"                       "file168b1f89c56a"               
#> [5] "file168b579b5381"                "libloc_195_8e2640ae0e7778e7.rds"
#> [7] "libloc_243_73e1dc07e520c1a4.rds" "parody"