tests/testthat/test-pbdb_taxonomic_functions.R

data <- readRDS(test_path("fixtures", "canidae_quat_df.rds"))

test_that("pbdb_subtaxa() returns a data frame", {
  df <- pbdb_subtaxa(data, do_plot = FALSE)
  ns <- c("species", "genera", "families", "orders", "classes", "phyla")
  expect_s3_class(df, "data.frame")
  expect_identical(names(df), ns)
})

Try the paleobioDB package in your browser

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

paleobioDB documentation built on May 29, 2024, 10:22 a.m.