clearExternalDir: Clear the external installation directory

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/clearExternalDir.R

Description

Clear the external installation directory by removing old Conda instances installed for different versions of basilisk with the same middle version number (i.e., same Bioconductor release).

Usage

1
2
3

Arguments

path

String containing the path to the latest version of the directory of interest.

Details

clearObsoleteDir can also be applied to the directories for the individual Conda environments, as the package version is also suffixed onto those directory paths. This is useful for clearing out obsolete versions of package environments.

Value

For clearExternalDir, all conda instances (and associated environments) of the same Bioconductor release as the current basilisk installation are destroyed.

The same applies for clearObsoleteDir except that the conda instance generated by the latest basilisk installation is retained.

Author(s)

Aaron Lun

See Also

getExternalDir, which determines the location of the external directory.

installConda, for the motivation behind this function.

Examples

1
2
3
# We can't actually run clearExternalDir() here, as it 
# relies on basilisk already being installed.
print("dummy test to pass BiocCheck")

LTLA/basilisk.utils documentation built on June 10, 2021, 8:41 p.m.