Package: rgee 1.1.8.9002

Matthieu Stigler

rgee: R Bindings for Calling the 'Earth Engine' API

Earth Engine <https://earthengine.google.com/> client library for R. All of the 'Earth Engine' API classes, modules, and functions are made available. Additional functions implemented include importing (exporting) of Earth Engine spatial objects, extraction of time series, interactive map display, assets management interface, and metadata display. See <https://r-spatial.github.io/rgee/> for further details.

Authors:Cesar Aybar [aut], Wu Qiusheng [ctb], Lesly Bautista [ctb], Roy Yali [ctb], Antony Barja [ctb], Kevin Ushey [ctb], Jeroen Ooms [ctb], Tim Appelhans [ctb], JJ Allaire [ctb], Yuan Tang [ctb], Samapriya Roy [ctb], MariaElena Adauto [ctb], Gabriel Carrasco [ctb], Henrik Bengtsson [ctb], Jeffrey Hollister [rev], Gennadii Donchyts [rev], Matthieu Stigler [aut, cre], Marius Appel [rev]

rgee_1.1.8.9002.tar.gz
rgee_1.1.8.9002.zip(r-4.7)rgee_1.1.8.9002.zip(r-4.6)rgee_1.1.8.9002.zip(r-4.5)
rgee_1.1.8.9002.tgz(r-4.6-any)rgee_1.1.8.9002.tgz(r-4.5-any)
rgee_1.1.8.9002.tar.gz(r-4.7-any)rgee_1.1.8.9002.tar.gz(r-4.6-any)
rgee_1.1.8.9002.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
rgee/json (API)

# Install 'rgee' in R:
install.packages('rgee', repos = c('https://r-spatial.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/r-spatial/rgee/issues

Pkgdown/docs site:https://r-spatial.github.io

On CRAN:

Conda:

earth-engineearthenginegoogle-earth-enginegoogleearthenginespatial-analysisspatial-data

14.10 score 774 stars 6 packages 2.5k scripts 1.9k downloads 76 exports 64 dependencies

Last updated from:b5ad15d301. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK215
source / vignettesOK321
linux-release-x86_64OK208
macos-release-arm64OK117
macos-oldrel-arm64OK134
windows-develOK130
windows-releaseOK176
windows-oldrelOK134
wasm-releaseOK198

Exports:%>%eeee_as_rastee_as_rasteree_as_sfee_as_starsee_as_thumbnailee_Authenticateee_checkee_check_credentialsee_check_gcloudee_check_pythonee_check_python_packagesee_check_task_statusee_clean_containeree_clean_pyenvee_clean_user_credentialsee_drive_to_localee_extractee_gcs_to_localee_get_assethomeee_get_date_icee_get_date_imgee_get_earthengine_pathee_helpee_image_infoee_image_to_assetee_image_to_driveee_image_to_gcsee_imagecollection_to_localee_Initializeee_installee_install_set_pyenvee_install_upgradeee_manage_asset_accessee_manage_asset_sizeee_manage_assetlistee_manage_cancel_all_running_taskee_manage_copyee_manage_createee_manage_deleteee_manage_delete_propertiesee_manage_moveee_manage_quotaee_manage_set_propertiesee_manage_taskee_monitoringee_printee_table_to_assetee_table_to_driveee_table_to_gcsee_user_infoee_usersee_utils_cog_metadataee_utils_create_jsonee_utils_create_manifest_imageee_utils_create_manifest_tableee_utils_dataset_displayee_utils_future_valueee_utils_get_crsee_utils_py_to_ree_utils_pyfuncee_utils_sak_copyee_utils_sak_validateee_utils_shp_to_zipee_versioneedate_to_rdategcs_to_ee_imagegcs_to_ee_tablelocal_to_gcsMapR6Mapraster_as_eerdate_to_eedatesf_as_eestars_as_ee

Dependencies:base64encbslibcachemclicrayoncrosstalkDBIdigestevaluatefarverfastmapfontawesomefsgeojsonsfgeometriesglueherehighrhtmltoolshtmlwidgetsjquerylibjsonifyjsonliteknitrlabelinglatticelazyevalleafemleafletleaflet.providerslifecyclemagrittrMatrixmemoisemimepngprocessxpsR6rapidjsonrrappdirsrasterRColorBrewerRcppRcppTOMLreticulaterlangrmarkdownrprojrootrstudioapis2sassscalessfsfheadersspterratinytexunitsviridisLitewithrwkxfunyaml

How to create and deploy rgee Shiny apps - I
What is an EE user token (EEtk)? | Deploying a simple rgee shiny app on shinyapps.io

Last update: 2025-10-12
Started: 2021-12-17

How to integrate Rmarkdown and rgee
1. The problem | 2. A tentative workaround | 3. Show me the code!

Last update: 2025-10-12
Started: 2021-12-22

Introduction to rgee
1. What is Google Earth Engine ? | 2. The purpose of Earth Engine is to: | 3. Components: | 4. Meet Earth Engine | 5. Why rgee instead of code editor (Javascript)? | 6. Installation | 7. Authentication | 8. Hello World | 9. Checking

Last update: 2022-03-14
Started: 2021-01-19

Integrate Google Cloud Storage and rgee
Create a Service Account Key | 1. Create a Google Cloud Platform (GCP) account | 2. Create a new project | 3. Activate GCS API | 4: Set up a service account | 5: Create and download a SaK as a json file. | Copy the SaK in your system | ERROR: Cannot insert legacy ACL for an object when uniform bucket-level access is enabled | ERROR in Earth Engine servers: Unable to write to bucket demo_0001 (permission denied). | Conclusion

Last update: 2022-03-14
Started: 2021-12-21

Considerations
1. The map message error: | 2. Do not forget the L | 3. Be careful with ee$Date | 4. Take into consideration reserved words in R

Last update: 2022-03-14
Started: 2021-01-19

Best Practices
Avoid mixing client functions and objects with server functions and objects | Avoid converting to list unnecessarily | Avoid ee.Algorithms.If() | Avoid reproject() | Filter and select() first | Use updateMask() instead of mask() | Combine reducers | Use Export | **If you don't need to clip, don't use clip() ** | If you need to clip with a complex collection, use clipToCollection() | Don't use a complex collection as the region for a reducer | Use a non-zero errorMargin | Don't use a ridiculously small scale with reduceToVectors() | Don't use reduceToVectors() with reduceRegions() | Use fastDistanceTransform() for neighborhood operations | Use the optimizations in reduceNeighborhood() | Don't sample more data than you need | Export intermediate results | Join vs. map-filter | reduceRegion() vs. reduceRegions() vs. for-loop | Use forward differencing for neighbors in time

Last update: 2022-03-14
Started: 2021-01-19

Readme and manuals

Help Manual

Help pageTopics
rgee: An R package for interacting with Google Earth Enginergee-package rgee
Main Earth Engine moduleee
Convert an Earth Engine (EE) image in a SpatRaster objectee_as_rast
Convert an Earth Engine (EE) image in a raster objectee_as_raster
Convert an Earth Engine table into a sf objectee_as_sf
Convert an Earth Engine (EE) image in a stars objectee_as_stars
Create an R spatial gridded object from an EE thumbnail imageee_as_thumbnail
Prompts the user to authorize access to Earth Engine via OAuth2.ee_Authenticate
Interface to check Python and non-R dependenciesee_check ee_check-tools ee_check_credentials ee_check_gcloud ee_check_python ee_check_python_packages
Delete files from either a Folder (Google Drive) or a Bucket (GCS)ee_clean_container
Remove rgee system variables from .Renvironee_clean_pyenv
Clean credentials for a specific useree_clean_user_credentials
Move results from Google Drive to a local directoryee_drive_to_local
Extract values from EE Images or ImageCollections objectsee_extract
Move results from Google Cloud Storage to a local directoryee_gcs_to_local
Get the Asset home nameee_get_assethome
Get the date of a EE ImageCollectionee_get_date_ic
Get the date of a EE Imageee_get_date_img
Get the path where the credentials are storedee_get_earthengine_path
Documentation for Earth Engine Objectsee_help
Approximate size of an EE Image objectee_image_info
Creates a task to export an EE Image to their EE Assets.ee_image_to_asset
Creates a task to export an EE Image to Drive.ee_image_to_drive
Creates a task to export an EE Image to Google Cloud Storage.ee_image_to_gcs
Save an EE ImageCollection to the local system.ee_imagecollection_to_local
Authenticate and Initialize Earth Engineee_Initialize
Create an isolated Python virtual environment with all rgee dependencies.ee_install
Specify a Python environment for rgeeee_install_set_pyenv
Upgrade the Earth Engine Python APIee_install_upgrade
Interface to manage the Earth Engine Assetee_manage-tools ee_manage_assetlist ee_manage_asset_access ee_manage_asset_size ee_manage_cancel_all_running_task ee_manage_copy ee_manage_create ee_manage_delete ee_manage_delete_properties ee_manage_move ee_manage_quota ee_manage_set_properties ee_manage_task
Monitoring Earth Engine task progressee_check_task_status ee_monitoring
Print and return metadata about Spatial Earth Engine Objectsee_print ee_print.ee.feature.Feature ee_print.ee.featurecollection.FeatureCollection ee_print.ee.geometry.Geometry ee_print.ee.image.Image ee_print.ee.imagecollection.ImageCollection
Creates a task to export a FeatureCollection to an EE table asset.ee_table_to_asset
Creates a task to export a FeatureCollection to Google Drive.ee_table_to_drive
Creates a task to export a FeatureCollection to Google Cloud Storage.ee_table_to_gcs
Display the credentials and general info of the initialized useree_user_info
Display the credentials of all users as a tableee_users
Return metadata of a COG tile serveree_utils_cog_metadata
Convert an R list into a JSON file in the temp() fileee_utils_create_json
Create a manifest to upload an imageee_utils_create_manifest_image
Create a manifest to upload a tableee_utils_create_manifest_table
Search into the Earth Engine Data Catalogee_utils_dataset_display
The value of a future or the values of all elements in a containeree_utils_future_value
Convert EPSG, ESRI or SR-ORG code into a OGC WKTee_utils_get_crs
Convert between Python and R objectsee_utils_py_to_r
Wrap an R function in a Python function with the same signature.ee_utils_pyfunc
Stores a Service account key (SaK) inside the EE folderee_utils_sak_copy
Validate a Service account key (SaK)ee_utils_sak_validate
Create a zip file from an sf objectee_utils_shp_to_zip
Earth Engine API versionee_version
Pass an Earth Engine date object to Reedate_to_rdate
Move a GeoTIFF image from GCS to their EE assetsgcs_to_ee_image
Move a zipped shapefile from GCS to their EE Assetsgcs_to_ee_table
Upload local files to Google Cloud Storagelocal_to_gcs
R6 object (Map) to display Earth Engine (EE) spatial objectsMap
EarthEngineMap + EarthEngineMap; adds data from the second map to the first+.EarthEngineMap EarthEngineMap, EarthEngineMap-method map-operator |, |.EarthEngineMap
print Earth Engine objectprint print.ee.computedobject.ComputedObject
R6 class to display Earth Engine (EE) spatial objectsR6Map
Convert a Raster* object into an EE Image objectraster_as_ee
Pass an R date object to Earth Enginerdate_to_eedate
Convert an sf object to an EE objectsf_as_ee
Convert a stars or stars-proxy object into an EE Image objectstars_as_ee