Skip to content

Commit

Permalink
Revert "use gd_ee_version()"
Browse files Browse the repository at this point in the history
This reverts commit bfa7814.
  • Loading branch information
brownag committed Dec 18, 2023
1 parent 8f5b612 commit fa8e55c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions R/AAAA.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ earthengine <- function() {
#' @export
#' @importFrom reticulate py_eval
gd_ee_version <- function() {
try(gd$utils$ee$`__version__`, silent = TRUE)
# try(reticulate::py_eval("version('earthengine-api')"), silent = TRUE)
try(reticulate::py_eval("version('earthengine-api')"), silent = TRUE)
}


#' @importFrom reticulate import
#' @importFrom reticulate py_run_string
.loadModules <- function() {
Expand Down
6 changes: 3 additions & 3 deletions R/hello.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ gd_initialize <- function(private_key_file = NULL,
# python 3.10.x compatibility:
try(collections_module$Callable <- collections_module$abc$Callable, silent = TRUE)

eev <- gd_ee_version()
eev <- gd$utils$ee$`__version__`

args <- list(
credentials = credentials,
Expand Down Expand Up @@ -122,8 +122,8 @@ gd_authenticate <- function(authorization_code = NULL,
auth_mode = NULL,
scopes = NULL,
force = TRUE) {
eev <- gd_ee_version()

eev <- gd$utils$ee$`__version__`

args <- list(
authorization_code = authorization_code,
Expand Down

0 comments on commit fa8e55c

Please sign in to comment.