tests/testthat/test_metadata.R

context("Metadata")

test_that("metadata works as expected", {
          skip_on_cran()
          expect_that(is(metadata(), "data.frame"), is_true())
          
          kind <- phylo_metadata("kind")
          type <- phylo_metadata("type") 
          table(kind, type)
          
          dates <- oai_metadata("date") 
          pub <- oai_metadata("publisher")
          table(dates, pub)
})

Try the treebase package in your browser

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

treebase documentation built on May 2, 2019, 11:05 a.m.