tests/testthat/test_population_dynamics.R

test_that("population_dynamics methods can all be called successfully", {
  
  needs_api()  
  
  df <- popchar("Oreochromis niloticus")
  expect_is(df, "data.frame")
  
  df <- popgrowth("Oreochromis niloticus", fields=
                    "TLinfinity")
  expect_is(df, "data.frame")
  
  df <- length_length("Oreochromis niloticus")
  expect_is(df, "data.frame")
  
  df <- length_freq("Oreochromis niloticus")
  expect_is(df, "data.frame")
  
  df <- length_weight("Oreochromis niloticus")
  expect_is(df, "data.frame")
  
})

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.