tests/testthat/test-model-set.R

test_that("ModelSet runs with nested descriptors", {
  expect_no_error(ModelSet(
    response = list(vsia = units::as_units("ft^3")),
    covariates = list(dsob = units::as_units("in")),
    predict_fn = function(dsob) dsob,
    descriptors = list(
      region = c("US-OR", "US-WA"),
      country = "CA"
    )
  ))
})

Try the allometric package in your browser

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

allometric documentation built on Nov. 8, 2023, 1:07 a.m.