Skip to content

Commit fa8e55c

Browse files
committed
Revert "use gd_ee_version()"
This reverts commit bfa7814.
1 parent 8f5b612 commit fa8e55c

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

R/AAAA.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ earthengine <- function() {
3535
#' @export
3636
#' @importFrom reticulate py_eval
3737
gd_ee_version <- function() {
38-
try(gd$utils$ee$`__version__`, silent = TRUE)
39-
# try(reticulate::py_eval("version('earthengine-api')"), silent = TRUE)
38+
try(reticulate::py_eval("version('earthengine-api')"), silent = TRUE)
4039
}
4140

41+
4242
#' @importFrom reticulate import
4343
#' @importFrom reticulate py_run_string
4444
.loadModules <- function() {

R/hello.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ gd_initialize <- function(private_key_file = NULL,
3636
# python 3.10.x compatibility:
3737
try(collections_module$Callable <- collections_module$abc$Callable, silent = TRUE)
3838

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

4141
args <- list(
4242
credentials = credentials,
@@ -122,8 +122,8 @@ gd_authenticate <- function(authorization_code = NULL,
122122
auth_mode = NULL,
123123
scopes = NULL,
124124
force = TRUE) {
125-
126-
eev <- gd_ee_version()
125+
126+
eev <- gd$utils$ee$`__version__`
127127

128128
args <- list(
129129
authorization_code = authorization_code,

0 commit comments

Comments
 (0)