tests/testthat/test-fortify-envfit.R

# Tests for fortify.envfit()

test_that("fortify works for envfit objects", {
  expect_snapshot(fortify(dune_envfit))
  expect_s3_class(fortify(dune_envfit), "tbl_df")
})

test_that("tidy works for envfit objects", {
  expect_snapshot(tidy(dune_envfit))
  expect_s3_class(tidy(dune_envfit), "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.