tests/testthat/test_taxa.R

library("testthat")
library("neotoma2")

context("`taxa()` function")
test_that("taxa() returns only unique results", {
  skip_on_cran()
  mydataset <- get_downloads(c(1435, 24238))
  df <- taxa(mydataset)
  testthat::expect_false(any(duplicated(df)))
  testthat::expect_is(df, "data.frame")
})

Try the neotoma2 package in your browser

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

neotoma2 documentation built on Dec. 6, 2025, 5:07 p.m.