tests/testthat/test_migrate.R

context("minimum energy from protein")

data <- data("birds")

test_that("out of bounds protein_met throws error", {
  expect_error(migtate(data = data, method = "cmm",
                       speed_control = "constant_speed", protein_met = 1.2
                                    ))
})

Try the flying package in your browser

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

flying documentation built on Feb. 13, 2020, 5:07 p.m.