Skip to content

Instantly share code, notes, and snippets.

@vjcitn
Last active August 22, 2024 10:14
Show Gist options
  • Save vjcitn/c3a1089344009a85a1bb15edbb41d6a2 to your computer and use it in GitHub Desktop.
Save vjcitn/c3a1089344009a85a1bb15edbb41d6a2 to your computer and use it in GitHub Desktop.
get DESCRIPTIONs
get_bioc_packagelist = function(rel = "RELEASE_3_19") {
system("git clone https://git.bioconductor.org/admin/manifest")
owd = getwd()
setwd("manifest")
on.exit(setwd(owd))
system(paste("git checkout ", rel))
proc_software.txt = function() {
x = readLines("software.txt")[-1] # first line is comment
nn = which(nchar(x)==0)
tmp = x[-nn]
gsub("Package: ", "", tmp)
}
proc_software.txt()
}
#!/bin/bash
git init $1
cd $1
git remote add origin git@git.bioconductor.org:packages/$1
git config core.sparseCheckout true
echo DESCRIPTION > .git/info/sparse-checkout
git fetch --depth 1 origin RELEASE_3_19
git checkout RELEASE_3_19
cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment