最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python - Install local R package using conda environment.yaml file - Stack Overflow

programmeradmin1浏览0评论

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 ?

发布评论

评论列表(0)

  1. 暂无评论