From 090e70a053d84c9432b0a9556e0b0d0df84bf846 Mon Sep 17 00:00:00 2001 From: Andrew Gene Brown Date: Wed, 16 Aug 2023 14:34:37 -0700 Subject: [PATCH] Disable autoconfiguration of python environment `.onLoad()` --- NEWS.md | 2 ++ R/AAAA.R | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/NEWS.md b/NEWS.md index 650a0ba..0a27771 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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 diff --git a/R/AAAA.R b/R/AAAA.R index 9b59964..2c36e65 100644 --- a/R/AAAA.R +++ b/R/AAAA.R @@ -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() + # } } } }