tests/testthat/helper-vcr.R

library("vcr") # *Required* as vcr is set up on loading

with_stubbed_credentials({
  invisible(vcr::vcr_configure(
    filter_sensitive_data = list(
      "<<<api_key>>>" = air:::get_key() |> result::value(),
      "<<<api_model>>>" = air:::get_model() |> result::value()
    ),
    dir = vcr::vcr_test_path("fixtures")
  ))
})

Try the air package in your browser

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

air documentation built on Aug. 8, 2025, 6:46 p.m.