tests/testthat/test-cover_trans.R

context("conversion of cover values to percentage")

test_that("cover_trans is working", {
  expect_is(cover_trans(Kenya_veg, to = "percent"), "vegtable")
  expect_true("percent" %in% names(cover_trans(Kenya_veg,
    to = "percent"
  )@samples), "vegtable")
})

Try the vegtable package in your browser

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

vegtable documentation built on March 31, 2023, 10:33 p.m.