Description Usage Arguments Details See Also Examples
View source: R/ee_Initialize.R
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()
.
1 | ee_Initialize(email = NULL, drive = FALSE, gcs = FALSE, quiet = FALSE)
|
email |
Character (optional, e.g. |
drive |
Logical (optional). If TRUE, the drive credential
will be cached in the path |
gcs |
logical. If TRUE, the Google Cloud Storage
credential will be cached in the path |
quiet |
logical. Suppress info messages. |
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
.
remove credential function:
ee_remove_credentials
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()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.