cleanConda: Run 'conda clean'

View source: R/cleanConda.R

cleanCondaR Documentation

Run conda clean

Description

Clean the Conda installation to remove unused packages and tarballs.

Usage

cleanConda(loc = getCondaDir())

Arguments

loc

String containing the path to the root of a conda instance.

Details

This should only be performed to save disk space for system installations, as the cached extras will never be used by any other basilisk package.

In contrast, for an externally cached conda, the extras may be re-used by other basilisk clients. So it's usually worth keeping them around, though this function can be called directly by the user if the cache gets too big.

Value

An integer value indicating whether the cleaning was successful.

Author(s)

Aaron Lun

Examples

# We can't actually run cleanConda() here, as it 
# either relies on basilisk already being installed or
# it has a hard-coded path to the basilisk system dir.
print("dummy test to pass BiocCheck")


LTLA/basilisk.utils documentation built on April 13, 2024, 1:14 a.m.