tests/testthat/test_rcatfish_journals.R

#Test that rcatfish_journals returns proper journal information


test_that("Test that rcatfish_journals returns proper journal information",{
  journal.hit <-try(rcatfish_journals(query = "Buntbarsche"))
  if ("try-error"%in%class(journal.hit)) {
    skip("could not connect to remote database")
    }else{
      expect_identical(as.numeric(grep("American Cichlid Association; 1966 up to the present / Journal of the American cichlid Association.",as.vector(journal.hit$Journals))), 1)
    }
  }
)

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.