Using Bioconductor with RStudio Package Manager

RStudio Package Manager has official support for Bioconductor starting in version 1.2.0-27, please see the below links for further details:


If you are on an older version and can not upgrade at this time, please use one of the workarounds below.
1) You can download the Bioconductor packages as source tarballs, and then add those tarballs to a local source.
# Create a source to hold the Bioconductor packages
rspm create source --name=bioc

# For each package: download and add to the source

rspm add --source=bioc --path=BiocGenerics_0.28.0.tar.gz

2) Bioconductor packages live in Git repositories, so you can also use the built-in Git support to automatically pull in the package sources for either a specific release or the bleeding edge development branch. Do this by using creating a git source for each release, and then adding the desired Bioconductor packages to the relevant Git source. 
# Create a git source for the bleeding edge Bioconductor packages
rspm create source --type=git --name=bioc-dev

# Add each package to the source
rspm add --source=bioc-dev --git-url=  

# OR create git source for a specific releases of Bioconductor
rspm create source --name=bioc-3.8

# Add each package to the source using the release branch
rspm add --source=bioc-3.8 --git-url=  --git-branch=RELEASE_3_8
Whether you use Git or a local source, finish by creating a repository to house the Bioconductor sources and then using install.packages, not BiocManager, to install the packages from RStudio Package Manager. 
If you wish to use BiocManager to install the packages from RStudio Package manager, follow the instructions at this link.  In these instructions, the repository type is set to BioConductor:
Then, follow these steps to check for success: