<p>I have a CRAN package say <code>myPack</code>, that imports two CRAN packages, say <code>cranA</code> and <code>cranB</code>. These two packages import Bioconductor packages, say <code>biocA</code> and <code>biocB</code>. When I try installation of my package with <code>install.packages(&quot;myPack&quot;)</code> this ends up with error. I have to install <code>biocA</code> and <code>biocB</code> that are imported from both <code>cranA</code> and <code>cranB</code> in order to successfully install &quot;myPack&quot;.</p>
<p>Does anyone have any idea how to do in order to successfully install <code>myPack</code> without having to install beforehand <code>biocA</code> and <code>biocB</code> from Bioconductor?</p>
<p>P.S. I have seen answers if you add <code>biocViews</code> to the <code>DESCRIPTION</code> file of <code>myPack</code>, but I think this is not sufficient for successful installation with <code>install.packages()</code>. The installation is successful if in addition you set the repositories with <code>setRepositories()</code> and you choose &quot;CRAN&quot; and &quot;BioC software&quot; and then you use <code>install.packages()</code> where the package inside <code>install.packages()</code> contains  <code>biocViews</code> to the <code>DESCRIPTION</code> file. So it seems that <code>biocViews</code> to the <code>DESCRIPTION</code> file does not automatically connect to Bioconductor repository.</p>

CC BY-SA 4.0
2022-01-03T00:52:35.270Z
From my experience there is no good solutions. Many packages I use offer step-to-step guidance about installing CRAN and bioconductor packages separately in a certain order.
Phoenix Mu
<r><bioconductor><software-installation>
install a CRAN package that imports a CRAN package that imports a Bioconductor package
# install a CRAN package that imports a CRAN package that imports a Bioconductor package

(Asked by: username_0 on 2022-01-01)

I have a CRAN package say `myPack`, that imports two CRAN packages, say `cranA` and `cranB`. These two packages import Bioconductor packages, say `biocA` and `biocB`. When I try installation of my package with `install.packages("myPack")` this ends up with error. I have to install `biocA` and `biocB` that are imported from both `cranA` and `cranB` in order to successfully install "myPack".

Does anyone have any idea how to do in order to successfully install `myPack` without having to install beforehand `biocA` and `biocB` from Bioconductor?

P.S. I have seen answers if you add `biocViews` to the `DESCRIPTION` file of `myPack`, but I think this is not sufficient for successful installation with `install.packages()`. The installation is successful if in addition you set the repositories with `setRepositories()` and you choose "CRAN" and "BioC software" and then you use `install.packages()` where the package inside `install.packages()` contains `biocViews` to the `DESCRIPTION` file. So it seems that `biocViews` to the `DESCRIPTION` file does not automatically connect to Bioconductor repository.

**Tags:** r, bioconductor, software-installation
> **Comments:**
> **username_1**: From my experience there is no good solutions. Many packages I use offer step-to-step guidance about installing CRAN and bioconductor packages separately in a certain order.  

---

## 0 answers

