tests/testthat/test_load_taxa.R

context("load taxa")

test_that("We can load taxa", {

  needs_api()
  df <- load_taxa(server = "fishbase")
  expect_is(df, "tbl")
  
  
  df <- load_taxa(server="sealifebase")
  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.