download: Install conda

View source: R/download.R

downloadR Documentation

Install conda

Description

Install conda via the Miniforge project to an appropriate destination path, skipping the installation if said path already exists.

Usage

download(
  download.version = defaultDownloadVersion(),
  cache.dir = defaultCacheDirectory(),
  ignore.cache = FALSE
)

Arguments

download.version

String specifying the Miniforge version to download.

cache.dir

String specifying the location of the directory in which to cache Miniforge installations.

ignore.cache

Logical scalar specifying whether to ignore any existing cached version of Miniforge, in which case the binaries will be downloaded again.

Details

This function was originally created from code in https://github.com/hafen/rminiconda, also borrowing code from reticulate's install_miniconda for correct Windows installation. It downloads and runs a Miniforge installer to create a Bioconductor-managed Conda instance.

Whenever download is re-run, any old conda instances and their associated basilisk environments are deleted from the external installation directory. This avoids duplication of large conda instances after their obselescence.

Value

A conda instance is created at the cache location. Nothing is performed if a complete instance already exists at that location. A string is returned containing the path to the conda installation.

Author(s)

Aaron Lun

Examples

download()


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