ee_install_set_pyenv: Configure which version of Python to use with rgee

Description Usage Arguments Value See Also Examples

View source: R/ee_install.R

Description

Configure which version of Python to use with rgee. This function creates two environment variables: 'EARTHENGINE_PYTHON' and 'EARTHENGINE_ENV' both will be saved into the file .Renviron.

Usage

1
2
3
4
5
6
ee_install_set_pyenv(
  py_path = NULL,
  py_env = NULL,
  Renviron = "global",
  quiet = FALSE
)

Arguments

py_path

The path to a Python interpreter

py_env

The name of the environment

Renviron

Character. If it is "global" the environment variables are set in the .Renviron located in the Sys.getenv("HOME") folder. On the other hand, if it is "local" the environment variables are set in the .Renviron on the working directory (getwd()). Finally, users can also enter a specific path (See examples).

quiet

Logical. Suppress info message

Value

no return value, called for setting EARTHENGINE_PYTHON in .Renviron

See Also

Other ee_install functions: ee_install_upgrade(), ee_install()

Examples

1
2
3
4
5
6
## Not run: 
library(rgee)
# ee_install_set_pyenv(py_path = "/usr/bin/python3", Renviron = "local")
# ee_install_set_pyenv(py_path = "/usr/bin/python3", Renviron = "/home/zgis/")

## End(Not run)

csaybar/rgee documentation built on March 11, 2021, 5:48 a.m.