clean_cache: Clean Conda Cache
Description
This function cleans the Conda cache by removing all packages and tarballs
from the local cache directory. It is useful for freeing up disk space
and ensuring that the cache does not contain outdated or unnecessary files.
Usage
clean_cache(verbose = c("output", "silent", "cmd", "spinner", "full"))Value
Invisibly returns the result of the underlying command executed.
Arguments
- verbose
A character string indicating the verbosity level of the
output. It can be one of "silent", "cmd", "output", or "full".
The default is "output".
Details
Packages that are still linked with existing environments are not be
removed. If you expect to clean the whole cache, consider removing
all existing environments first using list_envs() and remove_env().
Examples
Run this codeif (FALSE) {
condathis::with_sandbox_dir({
clean_cache(verbose = "output")
})
}
Run the code above in your browser using DataLab