tests/testthat/setup-OpenRange.R

# api urls

# URL for NSR API
#url <- "https://biendata.org/api/range/range-data?species=" # production
# N/A #testing

# Bad URLs for testing

# url <- "www.google.com"
# url <- "www.hisstank.com"

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

invisible(vcr::vcr_configure(
  dir = vcr::vcr_test_path("fixtures")
))

vcr::check_cassette_names()

Try the OpenRange package in your browser

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

OpenRange documentation built on April 4, 2025, 2:08 a.m.