tests/testthat/test_rcatfish_glossary.R

#Test that rcatfish_glossary returns proper definitions


test_that("Test that rcatfish_glossary returns proper definitions",{
  glossary.hit <-try(rcatfish_glossary())
  if ("try-error"%in%class(glossary.hit)) {
    skip("could not connect to remote database")
    }else{
      expect_equal(glossary.hit$Definition[3], "An Article of the Code of Zoological Nomenclature.")
    }
  }
)

Try the rcatfish package in your browser

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

rcatfish documentation built on Feb. 3, 2026, 5:07 p.m.