File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,10 +35,10 @@ earthengine <- function() {
3535# ' @export
3636# ' @importFrom reticulate py_eval
3737gd_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 () {
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments