Reputation: 75
Putting this up here mostly so that if I find a solution I can place it here for others. I am trying to use the package rgee
to interface with Google Earth Engine via R/Rstudio. I have downloaded rgee
with install.packages("rgee", dependencies = T)
. However, running ee_Initialize() when the expected authorization window opens up it states:
Error 400: invalid_request
The version of the app you're using doesn't include the latest security features to keep you protected.
Please make sure to download from a trusted source and update to the latest, most secure version.
Issues relating to this and similar errors on rgee's github haven't led to any solutions for me. I will update this post once I've figured it out.
### R/python packages
R version 4.1.2 (2021-11-01) -- "Bird Hippie"
Python 3.8
rgee_1.1.3
reticulate_1.25
### system
2020 MacBook Pro M1 Monterey 12.4
R Studio 2022.07.0 Build 548
Upvotes: 0
Views: 1028
Reputation: 1
Additionally installing gcloud (Windows) solved it for me: https://cloud.google.com/sdk/docs/install
Then this should work:
ee_install
ee_install_set_pyenv
ee_install_upgrade
ee_Initialize
## R version 4.2.1
## Python v3.9
## rgee_1.1.4
## reticulate_1.26
Upvotes: 0
Reputation: 133
This is usually related to your non-R settings. Try to:
ee_install
ee_install_set_pyenv
ee_install_upgrade
Follow the rgee guide for a full setup
Upvotes: 0