tests/testthat/setup-nsr.R

# api urls

# URL for NSR API
url <- "https://nsrapi.xyz/nsr_wsb.php" # production
#url <- "http://vegbiendev.nceas.ucsb.edu:9865/nsr_wsb.php" #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 NSR package in your browser

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

NSR documentation built on Oct. 17, 2024, 1:07 a.m.