This function installs [micromamba](https://mamba.readthedocs.io/en/latest/user_guide/micromamba.html), a lightweight `conda`-compatible package manager, into a user-defined directory. It automatically detects the operating system and architecture, downloads the appropriate binary, and extracts it into the specified location.
Arguments
- install_dir
Character. The directory where `micromamba` should be installed. Default is `~/.local/bin`.
- version
Character. The version of micromamba to install. Use `"latest"` (default) for the latest stable version.
- overwrite
Logical. If `TRUE`, forces reinstallation even if `micromamba` is already installed. Default is `FALSE`.
Details
If `micromamba` is already installed at the target location, and `overwrite = FALSE`, the existing binary is reused.
The function sets the `SN_MICROMAMBA` environment variable to the installed binary path, so that other ShennongTools functions can access it automatically.
See also
Other tool management:
.sn_validate_tool_legacy()
,
sn_add_tool()
,
sn_diagnose_tool()
,
sn_initialize_toolbox()
,
sn_install_tool()
,
sn_remove_tool()
,
sn_reset_toolbox()
,
sn_validate_tool()