Skip to contents

Returns the path of the micromamba executable that install_micromamba() installs, in the condathis data directory (see get_install_dir()). It is the third candidate of micromamba discovery in condathis-options, after the condathis.micromamba_path option and the CONDATHIS_MICROMAMBA_PATH variable.

Usage

micromamba_bin_path()

Value

An fs_path, the full path of the executable: micromamba/bin/micromamba in the condathis data directory, or micromamba/Library/bin/micromamba.exe on Windows. It does not check that a file exists there. Like get_install_dir(), it creates the condathis data directory when it is missing. Use fs::file_exists() on the result to check that the binary is present, or install_micromamba() to install it.

Examples

condathis::with_sandbox_dir({
  # The path where condathis installs micromamba
  print(condathis::micromamba_bin_path())
})
#> /tmp/Rtmpu60vo2/condathis-sandbox-2b1269dc3367/data/R/condathis/micromamba/bin/micromamba