setup_grafzahl {grafzahl} | R Documentation |
Setup grafzahl
Description
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
Usage
setup_grafzahl(cuda = FALSE, force = FALSE, cuda_version = "11.3")
Arguments
cuda |
logical, if |
force |
logical, if |
cuda_version |
character, indicate CUDA version, ignore if |
Value
TRUE (invisibly) if installation is successful.
Examples
# setup an environment with cuda enabled.
if (detect_conda() && interactive()) {
setup_grafzahl(cuda = TRUE)
}
[Package grafzahl version 0.0.11 Index]