tests/testthat/helper-vcr.R

key <- Sys.getenv("AMAP_KEY")
if (key == "") {
  key <- "FAKE_KEY"
}

options(amap_key = key)

if (requireNamespace("vcr", quietly = TRUE)) {
  vcr::vcr_configure(
    dir = "fixtures/vcr_cassettes",
    filter_sensitive_data = list("FAKE_KEY" = key)
  )
}

Try the amapGeocode package in your browser

Any scripts or data that you put into this service are public.

amapGeocode documentation built on Jan. 19, 2026, 9:07 a.m.