installTFpython: Install Python dependencies for SpatialDDLS

View source: R/utils.R

installTFpythonR Documentation

Install Python dependencies for SpatialDDLS

Description

This function facilitates the installation of the required Python dependencies for the SpatialDDLS R package, as it requires a Python interpreter with the TensorFlow Python library and its dependencies.

Usage

installTFpython(
  conda = "auto",
  python.version = "3.8",
  tensorflow.version = "2.6",
  install.conda = FALSE,
  miniconda.path = NULL
)

Arguments

conda

Path to a conda executable. Using "auto" (by default) allows reticulate to automatically find an appropriate conda binary.

python.version

Python version to be installed in the environment ("3.8" by default). We recommend keeping this version as it has been tested to be compatible with tensorflow 2.6.

tensorflow.version

Tensorflow version to be installed in the environment ("2.6" by default).

install.conda

Boolean indicating if installing miniconda automatically by using reticulate. If TRUE, conda argument is ignored. FALSE by default.

miniconda.path

If install.conda is TRUE, you can set the path where miniconda will be installed. If NULL, conda will find automatically the proper place.

Details

This function is intended to simplify the installation process for SpatialDDLS by automatically installing Miniconda and creating a new environment named SpatialDDLS-env with all SpatialDDLS' dependencies covered. For users who wish to use a different Python or conda environment, see the tensorflow::use_condaenv function for more information.

Value

No return value, called for side effects: installation of conda environment with a Python interpreter and Tensorflow

Examples

## Not run: 
notesInstallation <- installTFpython(
  conda = "auto", install.conda = TRUE
)

## End(Not run)


SpatialDDLS documentation built on Oct. 31, 2024, 5:07 p.m.