tests/testthat/test-ebird_get.R

context("test-ebird_get")

test_that_without_key("ebird_GET errors with no API key", {
  expect_error(ebird_GET(ebase(), args = list(), key = NULL), 
               "You must provide an API key")
})

Try the rebird package in your browser

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

rebird documentation built on Sept. 20, 2021, 9:06 a.m.