Learn R Programming

geeLite (version 1.0.6)

check_rgee_ready: Check Google Earth Engine connection

Description

Returns TRUE if the user is authenticated with Google Earth Engine via rgee, without triggering any interactive prompts. If conda is provided, the function first tries to bind that Conda environment non-interactively (CRAN-safe), then checks credentials.

Usage

check_rgee_ready(conda = NULL, verbose = interactive())

Value

Logical, invisibly: TRUE if ready, FALSE otherwise.

Arguments

conda

[optional] (character) Name of a Conda environment to bind via reticulate::use_condaenv() before checking credentials. If NULL (default), the current reticulate binding is used.

verbose

[optional] (logical) If TRUE, prints a short diagnostic message when GEE is not ready. Defaults to interactive() so CRAN/CI stays quiet.