I need to export a Conda R environment with a number of packages. All except one are available through a Conda channel, so can be trivially added. The problem is the package BiDAG, which is on CRAN, but none of the Conda channels.
When I run install.packages("BiDAG")
from inside the environment I want to export, the package is installed into the correct directory. However, conda env export > env.yml
does not recognise it, as it only tracks packages that are installed by conda itself.
I've tried building from CRAN with
conda skeleton CRAN bidag
conda build r-bidag
But this crashes on two packages (r-graph and r-rgraphviz) that are available from Bioconductor, and even through conda channels, but no longer on CRAN. They are therefore not recognised and the build fails.
Is there a way to export a conda environment with this CRAN package BiDAG in the .yml?