tests/testthat/test-TNRS_sources.R

context("tnrs sources")


test_that("example works", {
  # skip_if_offline(host = "r-project.org")


  vcr::use_cassette("tnrs_sources", {
    sources <- TNRS_sources(
      url = url,
      skip_internet_check = TRUE
    )
  })


  # test below assume a data dictionary and will be skipped if one isn't returned
  skip_if_not(class(sources) == "data.frame")
  expect_gt(object = nrow(sources), expected = 1)
})
EnquistLab/RTNRS documentation built on Oct. 14, 2024, 2:11 p.m.