Get the path of the managed micromamba binary
Source:R/micromamba_bin_path.R
micromamba_bin_path.RdReturns 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.
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.
See also
Other setup:
clean_cache(),
get_install_dir(),
get_sys_arch(),
install_micromamba(),
with_sandbox_dir()
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