tests/testthat/test-WL.R

describe("WL()", {
  it("can estimate the leaf dry weight.", {
    expect_equal(WL(20), 12.55129)
    expect_equal(WL(0), 0)
  })
  it("return `NA` when the diameter at the lowest major living branch inputed is NA.", {
    expect_equal(WL(NA), NA)
  })
})

Try the javateak package in your browser

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

javateak documentation built on April 3, 2025, 10:44 p.m.