Skip to content

Commit

Permalink
Disable autoconfiguration of python environment .onLoad()
Browse files Browse the repository at this point in the history
  • Loading branch information
brownag committed Aug 16, 2023
1 parent 225ac2b commit 090e70a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
* Add `gd_region_to_vect()` an inverse method for `gd_bbox()`/`gd_region()` that creates a 'terra' _SpatVector_ from a GeoJSON-like list

* Add `gd_list_assets()` a helper function for listing the assets associated with a particular Earth Engine project.

* `reticulate::configure_environment()` is no longer called on load, this is a precaution to avoid unintended impacts from the automatic routine installing on CRAN or similar.

# rgeedim 0.2.4

Expand Down
8 changes: 4 additions & 4 deletions R/AAAA.R
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ gd_ee_version <- function() {
.onLoad <- function(libname, pkgname) {
if (.has_python3()) {
if (!.loadModules()) {
x <- try(reticulate::configure_environment(pkgname), silent = TRUE)
if (!inherits(x, 'try-error')) {
.loadModules()
}
# x <- try(reticulate::configure_environment(pkgname), silent = TRUE)
# if (!inherits(x, 'try-error')) {
# .loadModules()
# }
}
}
}
Expand Down

0 comments on commit 090e70a

Please sign in to comment.