install_micromamba {condathis} | R Documentation |
Install Micromamba Binaries in the condathis
Controlled Path
Description
Downloads and installs the Micromamba binaries in the path managed by the condathis
package.
Micromamba is a lightweight implementation of the Conda package manager and provides an efficient way
to create and manage conda environments.
Usage
install_micromamba(
micromamba_version = "2.0.4-0",
timeout_limit = 3600,
download_method = "auto",
force = FALSE
)
Arguments
micromamba_version |
Character string specifying the version of Micromamba to download.
Defaults to |
timeout_limit |
Numeric value specifying the timeout limit for downloading the Micromamba
binaries, in seconds. Defaults to |
download_method |
Character string passed to the |
force |
Logical. If set to TRUE, the download and installation of the
Micromamba binaries will be forced, even if they already exist in the
system or |
Details
This function checks if Micromamba is already installed in the condathis
controlled path.
If not, it downloads the specified version from the official GitHub releases and installs it.
On Windows, it ensures the binary is downloaded correctly by setting the download mode to "wb"
.
If the download fails, appropriate error messages are displayed.
Value
Invisibly returns the path to the installed Micromamba binary.
Examples
## Not run:
condathis::with_sandbox_dir({
# Install the default version of Micromamba
condathis::install_micromamba()
# Install a specific version of Micromamba
condathis::install_micromamba(micromamba_version = "2.0.2-2")
# Force reinstallation of Micromamba
condathis::install_micromamba(force = TRUE)
})
## End(Not run)