Learn R Programming

rgee (version 0.5.0)

ee_install_discover_pyenvs: Discover all the Python environments available in the system

Description

This function enables callers to check which versions of Python will be discovered on a system.

Usage

ee_install_discover_pyenvs(use_py_discover_config = TRUE)

Arguments

use_py_discover_config

Logical. If TRUE will use py_discover_config to find versions of Python in the system. Otherwise, will use conda_list for Window OS and virtualenv_list for Unix system.

Value

Python configuration object (reticulate).

Examples

Run this code
# NOT RUN {
library(rgee)

## It is necessary just once, not mandatory

# 1. Create a Python environment, e.g. ee.
pyenv <- ee_install_create_pyenv(py_env = "ee")

# OPTIONAL: Find others Python path in the system.
# ee_install_discover_pyenvs()

# 2. Set a Python path in .Renviron (EARTHENGINE_PYTHON)
# to be used in future sessions
ee_install_set_pyenv(pyenv)

# 3. Now run ee_Initialize()
ee_Initialize()
# }

Run the code above in your browser using DataLab