ee_Initialize: Authenticate and Initialize Earth Engine

Description Usage Arguments Details See Also Examples

View source: R/ee_Initialize.R

Description

Authorize rgee to manage Earth Engine resources, Google Drive, and Google Cloud Storage. The ee_initialize() via web-browser will ask to sign in to your Google account and allows you to grant permission to manage resources. This function is a wrapper around rgee::ee$Initialize().

Usage

1
ee_Initialize(email = NULL, drive = FALSE, gcs = FALSE, quiet = FALSE)

Arguments

email

Character (optional, e.g. data.colec.fbf@gmail.com). The email name is used as a folder inside the path rgee::ee_get_earthengine_path(). This enable a multi-user support allowing to target a specific Google identity.

drive

Logical (optional). If TRUE, the drive credential will be cached in the path rgee::ee_get_earthengine_path().

gcs

logical. If TRUE, the Google Cloud Storage credential will be cached in the path rgee::ee_get_earthengine_path().

quiet

logical. Suppress info messages.

Details

ee_Initialize(...) can also manage Google drive and Google Cloud Storage resources using the R packages googledrive and googlecloudStorageR, respectively. By default, rgee does not require them, these are only necessary for exporting and importing tasks. All user credentials are saved in the directory ~/.config/earthengine/, if a user does not specified the the email argument all user credentials will be saved in a subdirectory called ndef.

See Also

remove credential function:
ee_remove_credentials

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
library(rgee)
ee_reattach() # reattach ee as a reserved word

# Simple init
ee_Initialize()

# Advanced init
ee_Initialize(
  email = "data.colec.fbf@gmail.com",
  drive = TRUE,
  gcs = TRUE
)

ee_user_info()

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