A single entry point for removing greta's Python bits, which is useful when
debugging a greta installation and you want to get back to a "clean slate".
Use the what argument to choose how much to remove.
Usage
greta_remove(
what = c("all", "env", "miniconda", "uv_cache", "preference", "deps"),
ask = interactive()
)Arguments
- what
What to remove. One of:
"all"(default): the"greta-env-tf2"conda environment, miniconda, reticulate's uv cache, and greta's stored preferences (the Python backend set viagreta_set_python(), and the dependency versions set viagreta_set_deps()). This is a "nuclear" reset that asks once, then removes everything it finds."env": the"greta-env-tf2"conda environment."miniconda": the miniconda installation."uv_cache": reticulate's uv cache. Note this cache is shared by all R packages that use reticulate's uv (it is not greta-specific); a system-wide uv cache is left untouched."preference": greta's stored Python backend preference (set viagreta_set_python())."deps": greta's stored dependency versions (set viagreta_set_deps()).
- ask
Ask for confirmation? Default is
interactive().
