tests/testthat/test_trophic_ecology.R

context("trophic_ecology")
test_that("we can call the trophic ecology information  table", {
  needs_api()

  df <- diet_items() # not a species-oriented table
  expect_is(df, "tbl")
    
  df <- fooditems("Oreochromis niloticus")
  expect_is(df, "tbl")
})

Try the rfishbase package in your browser

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

rfishbase documentation built on June 7, 2023, 6:14 p.m.