tests/testthat/test-model_select.R

test_that("model_select returns an expression of length 1", {
  mod <- model_select(
    author = "Beacham and Murray 1990",
    species = "sockeye",
    model_id = 2,
    development_type = "hatch"
    )
  expect_s3_class(mod, "data.frame")
  expect_equal(nrow(mod), 1)
})

Try the hatchR package in your browser

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

hatchR documentation built on April 3, 2025, 7:54 p.m.