Last active
August 22, 2024 10:14
-
-
Save vjcitn/c3a1089344009a85a1bb15edbb41d6a2 to your computer and use it in GitHub Desktop.
get DESCRIPTIONs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 [email protected]: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