Learn R Programming

rgee (version 0.2.0)

ee_set_pyenv: Set the Python environment to be used on rgee

Description

Set the Python environment to be used on rgee

Usage

ee_set_pyenv(python_path, python_env, install = FALSE,
  confirm = interactive())

Arguments

python_path

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

python_env

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

install

if TRUE, rgee will save the Python interpreter path and the virtual environment name in the .Renviron file for use in future sessions. Defaults to FALSE.

confirm

Logical. Confirm if restart R when the 'install' argument is TRUE.

Details

It is necessary to restart R to observe change when setting a different Python version. ee_set_pyenv will ask you to restart R.

Examples

Run this code
# NOT RUN {
library(rgee)
ee_create_pyenv('ee')
ee_discover_pyenvs()
ee_set_pyenv(
  python_path = ".../ee/bin/python",
  python_env = 'ee')
ee_install_python_packages()
# }

Run the code above in your browser using DataLab