Skip to content

Error in ee_extract #399

Description

@monviso

Hi everyone,

I am running some data extraction that works quite well if I set via="getInfo", but if I use via="drive" I get the error:

Error in ee_exist_credentials() :
could not find function "ee_exist_credentials"

The same happen with the script provided in the ee_extract documentaion:
`library(rgee)
library(sf)

ee_Initialize(gcs = TRUE, drive = TRUE)

Define a Image or ImageCollection: Terraclimate

terraclimate <- ee$ImageCollection("IDAHO_EPSCOR/TERRACLIMATE")
tt<- ee$filterDate("2001-01-01", "2002-01-01")

Define a geometry

nc <- st_read(
dsn = system.file("shape/nc.shp", package = "sf"),
stringsAsFactors = FALSE,
quiet = TRUE
)

Extract values - drive (lazy = TRUE)

ee_nc_rain <- ee_extract(
x = tt,
y = nc["NAME"],
scale = 250,
fun = ee$Reducer$mean(),
via = "drive",
lazy = TRUE,
sf = TRUE
)

My session info are:

R version 4.5.0 (2025-04-11 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 11 x64 (build 26200)
rgee_1.1.8

Thanks for any help!
Matteo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions