My question is a mix of these 2 : Install R packages using conda via an environment.yml file and How to install local library with pip to a conda environment using environtment.yml file?.
I have an environment.yaml
file where I need to install R and python packages, both from repo and locally :
name: simulation_snt
channels:
- conda-fe
- bioconda
dependencies:
- snakemake-minimal >=8.4.4
- matplotlib
- graphviz
- scipy
- sympy
- numba>=0.39
- tbb
- pip:
- snt_dev/
- r-base
- r-tidyverse
I need to add a line to install a local R package. On R, the command is install.packages("../these-paul-bunel/simulations_snt/pipeline/NB_0.9.tar.gz", repos = NULL, type="source")
How can I tell in my environment.yaml
file that I want this package to be automatically installed in R when creating the environment ?