Learn R Programming

rgee (version 0.5.0)

ee_install_set_pyenv: Set the Python environment to be used on rgee

Description

Set the Python environment to be used on rgee

Usage

ee_install_set_pyenv(py_path)

Arguments

py_path

The path to a Python interpreter, to be used with rgee.

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