r-spatial / rgee

Google Earth Engine for R
https://r-spatial.github.io/rgee/
Other
691 stars 148 forks source link

Updated ee_check_init() to compare earthengine-api version using #372

Open NONONOexe opened 2 weeks ago

NONONOexe commented 2 weeks ago

In ee_check_init(), we verify that the earthengine-api version is compatible with rgee, specifically ensuring it's not newer than version 0.1.317. However, the latest version of earthengine-api (1.2.0) is incorrectly flagged as outdated due to the current comparison method.

To address this issue, I updated the comparison approach to use numeric_version(). This fix prevents unnecessary warnings from being triggered, such as when calling ee_clean_user_credentials() with the latest earthengine-api version.