Learn R Programming

rgee (version 0.1.0)

ee_Initialize: Authenticate and Initialize Earth Engine

Description

Authorize rgee to manage Earth Engine resource The ee_initialize() via web-browser asked to sign in to your Google account and grant permission for managing google earth engine. This function is a wrapper around rgee::ee$Initialize().

Usage

ee_Initialize(user_gmail = NULL, drive = FALSE, gcs = FALSE,
  assethome = NULL, checkpy = FALSE, quiet = FALSE)

Arguments

user_gmail

optional. Allows user to target a specific Google identity.

drive

logical. Whether TRUE the drive credential will cache in the system.

gcs

logical. Whether TRUE the Google Cloud Storage credential will cache in the system.

assethome

character. Home folder's name of you EE Assets.

checkpy

logical. Check if the current Python version of this system is admitted by rgee.

quiet

logical. Suppress info messages.

Details

ee_Initialize() give the possibility of authorize Google drive (googledrive) and Google Cloud Storage (googlecloudStorageR). By default, rgee do not need to them, these are just necessary for exportation and importation tasks. All the user credentials are save in the folder ~/.config/earthengine/USERS/, if a user is not specified the parameters of the last session would be used.

Examples

Run this code
# NOT RUN {
ee_reattach() # reattach ee as a reserve word

# Simple init
library(rgee)
ee_Initialize()

# Advanced init
expr <- ee_Initialize(user_gmail = 'aybar1994@gmail.com',
                      drive = TRUE,
                      gcs = TRUE,
                      checkpy = TRUE,
                      assethome = 'users/aybar1994')
# }

Run the code above in your browser using DataLab