tests/testthat/test-fortify-decorana.R

# Tests for fortify.decorana()

test_that("fortify works for decorana objects", {
  expect_snapshot(fortify(dune_dca))
  expect_s3_class(fortify(dune_dca), "tbl_df")
})

test_that("tidy works for decorana objects", {
  expect_snapshot(tidy(dune_dca))
  expect_s3_class(tidy(dune_dca), "tbl_df")
})

Try the ggvegan package in your browser

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

ggvegan documentation built on Feb. 28, 2026, 1:07 a.m.