Skip to content
Prev 5678 / 21307 Next

[Bioc-devel] Installing Annotation Packages Matching a Pattern

Hi Dario,
On 05/04/2014 08:00 PM, Dario Strbenac wrote:
Not all packages that contain or deal with human data contain the
pattern Hsapiens in them so I'm not sure what you are trying to achieve
with this.

Anyway, and FWIW, you could get the list of all BioC + CRAN packages
with:

   library(BiocInstaller)
   all_bioc_pkgs <- 
rownames(available.packages(contrib.url(biocinstallRepos())))

then use grep(..., value=TRUE) on 'all_bioc_pkgs' (character vector of
lenth > 7300) to keep only the packages that match a given regular
expression, then call biocLite() on that.

Cheers,
H.