Learn R Programming

rgee (version 0.5.0)

ee_install_create_pyenv: Create an isolated Python virtual environment to be used in rgee

Description

Create an isolated Python virtual environment to be used in rgee

Usage

ee_install_create_pyenv(py_env = "rgee")

Arguments

py_env

The name of, or path to, a Python virtual environment.

Value

Character. The path of the virtual environment created.

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