Learn R Programming

rgee (version 0.1.0)

ee_install-tools: Interface to install non-R rgee dependencies

Description

R functions to install the necessary third-party python packages for rgee and removing Python Selenium Chromedriver and credentials

Usage

ee_install_drivers(GoogleChromeVersion)

ee_install_rgee_python_packages(method = c("auto", "virtualenv", "conda"), conda = "auto", ee_version = "0.1.175", envname = NULL, extra_packages = c("selenium", "bs4", "pysmartDL", "requests_toolbelt"), restart_session = TRUE, conda_python_version = "3.6", quiet = FALSE, ...)

ee_remove_driver(quiet = FALSE)

ee_remove_credentials(user, quiet = FALSE)

Arguments

GoogleChromeVersion

Google Chrome version of this system.

method

Installation method. By default, "auto" automatically finds a method that will work in the local environment. Change the default to force a specific installation method. Note that the "virtualenv" method is not available on Windows (as this isn't supported by rgee). Note also that since this command runs without privilege the "system" method is available only on Windows.

conda

Path to conda executable (or "auto" to find conda using the PATH and other conventional install locations).

ee_version

earthengine-api version to install. Up to and including earthengine-api 0.1.X, specify "default" to install the 0.1.175 version.

envname

Name of Python environment to install.

extra_packages

Additional Python packages to install along with rgee.

restart_session

Restart R session after installing (note this will only occur within RStudio).

conda_python_version

the Python version installed in the created conda environment. Python 3.6 is installed by default.

quiet

logical. Suppress info message

user

character. User to whom credentials would remove

Details

It is neccessary restart R to observe change when installing a Python packages. rgee only is compatible with Python version 3.5 >=.

Examples

Run this code
# NOT RUN {
library(rgee)

# Recommended way to use rgee
## 1. Create a virtualenv
#virtualenv_remove("rgee")
virtualenv_create("rgee", python = "python3.7")
use_virtualenv("rgee")
# rstudioapi::restartSession() # Restart R

## 2. Check dependencies
ee_check()
ee_install_rgee_python_packages() # Install rgee python packages
ee_install_drivers() # Install selenium drivers (see ee_upload)
ee_Initialize(drive = TRUE, gcs = TRUE) # Install GCS and DRIVE credentials (optional)
ee_check()
# }

Run the code above in your browser using DataLab