ee_set_pyenv: Set the Python environment to be used on rgee

Description Usage Arguments Details Examples

View source: R/ee_install.R

Description

Set the Python environment to be used on rgee

Usage

1
2
3
4
5
6
7
ee_set_pyenv(
  python_path,
  python_env = NULL,
  automatic_pyenv = TRUE,
  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. If not defined will estimate from the path.

automatic_pyenv

Logical. Search automatically in the python_path the python_env. Ignore when the python_env argument is not NULL. By default TRUE.

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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()

## End(Not run)

ryali93/rgee documentation built on May 13, 2020, 4:34 a.m.