tests/testthat/test-vegtable_stat.R

context("testing statistic outputs")

test_that("statistics are printed", {
  # Summary of vegtable objects
  result <- evaluate_promise(print(vegtable_stat(Kenya_veg)), print = TRUE)
  expect_true(grepl("## Metadata", result$output))
})

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.