test_that("npn_indsatstations defunct", { expect_error(npn_indsatstations()) expect_error(npn_indsatstations(stationid = c(507, 523))) }) test_that("npn_indspatstations defunct", { expect_error(npn_indspatstations()) expect_error(npn_indspatstations(speciesid = 35, stationid = c(60, 259), year = 2009)) }) test_that("npn_obsspbyday", { expect_error(npn_obsspbyday()) expect_error(npn_obsspbyday(speciesid=357, startdate='2010-04-01', enddate='2012-01-05')) }) test_that("npn_stationsbystate", { expect_error(npn_stationsbystate()) expect_error(npn_stationsbystate("foo")) }) test_that("npn_stationswithspp", { expect_error(npn_stationswithspp()) expect_error(npn_stationswithspp(speciesid = c(52,53,54))) })