find: Find conda

View source: R/find.R

findR Documentation

Find conda

Description

Find an existing conda installation or, if none can be found, install a biocconda-managed conda instance.

Usage

find(
  command = defaultCommand(),
  minimum.version = defaultMinimumVersion(),
  can.download = TRUE,
  forget = FALSE,
  ...
)

Arguments

command

String containing the command to check for an existing installation.

minimum.version

String specifying the minimum acceptable version of an existing installation.

can.download

Logical scalar indicating whether to download conda if no acceptable existing installation can be found.

forget

Logical scalar indicating whether to forget the results of the last call.

...

Further arguments to pass to download.

Details

If the BIOCCONDA_FIND_OVERRIDE environment variable is set to a command or path to a conda executable, it is returned directly and all other options are ignored.

By default, find will remember the result of its last call in the current R session, to avoid re-checking the versions, cache, etc. This can be disabled by setting forget=TRUE to force a re-check, e.g., to detect a new version of conda that was installed while the R session is active.

Value

String containing the command to use to run conda.

Author(s)

Aaron Lun

Examples

cmd <- find()
system2(cmd, "--version")


LTLA/basilisk.utils documentation built on June 11, 2025, 8:56 a.m.