r-spatial / rgee

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

googledrive dependency: version 2 needed? #178

Closed MatthieuStigler closed 3 years ago

MatthieuStigler commented 3 years ago

I suspect rgee needs actually version 2 of googledrive? It now requires only (≥ 1.0.0), I had 1.0.1 installed, and ran into an error message using ee_as_raster complaining about:

Error: 'with_drive_quiet' is not an exported object from 'namespace:googledrive'

And it seems with_drive_quiet was introduced for version 2 (https://cloud.r-project.org/web/packages/googledrive/news/news.html)?

See below:

packageVersion("googledrive")
#> [1] '1.0.1'
googledrive::with_drive_quiet
#> Error: 'with_drive_quiet' is not an exported object from 'namespace:googledrive'

Created on 2021-08-25 by the reprex package (v0.3.0)

And:

packageVersion("googledrive")
#> [1] '2.0.0'
googledrive::with_drive_quiet
#> function (code) 
#> {
#>     withr::with_options(list(googledrive_quiet = TRUE), code = code)
#> }
#> <bytecode: 0x561d1dd4eab8>
#> <environment: namespace:googledrive>

Created on 2021-08-25 by the reprex package (v0.3.0)

csaybar commented 3 years ago

Hi @MatthieuStigler. I already solved this problem in rgee 1.1.1. https://github.com/r-spatial/rgee/blob/master/NEWS.md Let me know if the problem persists.

remotes::install_github("r-spatial/rgee")

Thank you so much for supporting rgee :)

MatthieuStigler commented 3 years ago

oh sorry, I missed that, I should have checked with the most recent version. Thanks!!