Install a self-contained miniconda environment with all Python components (PyTorch, Transformers, Simpletransformers, etc) which grafzahl required. The default location is "~/.local/share/r-miniconda/envs/grafzahl_condaenv" (suffix "_cuda" is added if cuda
is TRUE
).
On Linux or Mac and if miniconda is not found, this function will also install miniconda. The path can be changed by the environment variable GRAFZAHL_MINICONDA_PATH
Arguments
- cuda
logical, if
TRUE
, indicate whether a CUDA-enabled environment is wanted.- force
logical, if
TRUE
, delete previous environment (if exists) and create a new environment- cuda_version
character, indicate CUDA version, ignore if
cuda
isFALSE
Examples
# setup an environment with cuda enabled.
if (detect_conda() && interactive()) {
setup_grafzahl(cuda = TRUE)
}