tests/testthat/test_maturity.R

context("maturity")

test_that('returns a data.frame with correct sciname', 
          {
            needs_api()
            expect_true("Epinephelus morio" %in% 
                          maturity("Epinephelus morio")$Species)
          }
          )

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.