tests/testthat/test_getHeight.r

context("getHeight")

test_that("output is a vector", {
  expect_is(getHeight(
    tree = list(spp = 1, D1 = 30, H = 25),
    Dx = list(Dx = 7),
    bark = TRUE,
    mapping = NULL
  ), "numeric")
})

Try the rBDAT package in your browser

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

rBDAT documentation built on Oct. 14, 2022, 5:07 p.m.