ta.test <- read_tidyamplicons(test_path("data/urt"))
test_that("Gives default rank names when not provided", {
expect_equal(ta.test %>% rank_names(),
c("kingdom", "phylum", "class", "order", "family", "genus")
)
})
test_that("Gives custom rank names when provided", {
ta.test <- ta.test %>% set_rank_names(
c("domain","phylum","order","family", "genus", "species")
)
expect_equal(ta.test %>% rank_names(),
c("domain","phylum","order","family", "genus", "species")
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.