tests/testthat/test-gni_search.R

context("gni_search")

test_that("gni_search returns the correct value", {
  skip_on_cran()
  vcr::use_cassette("gni_search", {
    x <- gni_search(sci = "ama*", per_page = 1) 
  })

	expect_is(x, "data.frame")
  expect_equal(x[,2], "22693003")
})

Try the taxize package in your browser

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

taxize documentation built on Sept. 11, 2024, 6:13 p.m.