installing multiple bioconductor packages at once I was wondering if there is more elegant way of installing and loading multiple packages in Bioconductor similar to pacman with CRAN packages.
I tried:

# install and load  the package  manager
 if (!requireNamespace(&quot;BiocManager&quot;, quietly = TRUE))
    install.packages(&quot;BiocManager&quot;)

# install and load bioconductor packages 
bio_pkgs = c(&quot;BiocManager&quot;, &quot;ggbio&quot;, &quot;biomaRt&quot;, &quot;EnsDb.Hsapiens.v75&quot;, &quot;cBioPortalData&quot;, &quot;GenomicRanges&quot;, &quot;GenomicFeatures&quot;, &quot;TxDb.Hsapiens.UCSC.hg19.knownGene&quot;, &quot;Homo.sapiens&quot;)

 if (!requireNamespace(bio_pkgs, quietly = TRUE))
    BiocManager::install(bio_pkgs)

library(easypackages)
libraries(&quot;ggbio&quot;, &quot;biomaRt&quot;, &quot;EnsDb.Hsapiens.v75&quot;, &quot;renvcBioPortalData&quot;, &quot;GenomicRanges&quot;, &quot;GenomicFeatures&quot;, &quot;TxDb.Hsapiens.UCSC.hg19.knownGene&quot;, &quot;Homo.sapiens&quot;)
I always do something like this:
bio_pkgs &lt;- c(&quot;ggbio&quot;, &quot;biomaRt&quot;, &quot;EnsDb.Hsapiens.v75&quot;, &quot;renvcBioPortalData&quot;, 
          &quot;GenomicRanges&quot;, &quot;GenomicFeatures&quot;, &quot;TxDb.Hsapiens.UCSC.hg19.knownGene&quot;, &quot;Homo.sapiens&quot;)

# install:
BiocManager::install(bio_pkgs)

# load all at once
invisible(lapply(pkgs, function(x) library(x, character.only=TRUE)))