Skip to content

Instantly share code, notes, and snippets.

@aaronwolen
Created November 21, 2012 15:39
Show Gist options
  • Save aaronwolen/4125510 to your computer and use it in GitHub Desktop.
Save aaronwolen/4125510 to your computer and use it in GitHub Desktop.
Install bioconductor for older versions of R
install.packages(c("RCurl", "XML"))
bioc.v <- tools:::.BioC_version_associated_with_R_version
repos <- tools:::.read_repositories(file.path(R.home("etc"), "repositories"))
bioc.repo <- repos["BioCsoft",]$URL
bioc.repo <- sub("2\\.\\d+", bioc.v, bioc.repo)
packages <- c("zlibbioc", "BiocGenerics", "Biobase", "IRanges",
"AnnotationDbi", "GenomicRanges", "Biostrings", "Rsamtools",
"BSgenome", "rtracklayer")
install.packages(packages, repos = bioc.repo)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment