Skip to contents

`conda` is often a shell function rather than a program on the `PATH`, so it may not be visible to R. The executable is looked up, in order, from:

  1. the `sra2lab.conda` option, e.g. `options(sra2lab.conda = "/opt/miniconda3/bin/conda")`;

  2. `default`, the Miniconda location `~/miniconda3/bin/conda`;

  3. the `CONDA_EXE` environment variable, set by `conda init`;

  4. `conda` on the `PATH`.

Usage

conda_bin(default = "~/miniconda3/bin/conda")

Arguments

default

Path to try when the `sra2lab.conda` option is not set.

Value

The path to the conda executable. An error is raised if none is found.

Examples

if (FALSE) { # \dontrun{
conda_bin()
} # }