library(occCite)
library(ape)
data(myOccCiteObject)
mySimpleOccCiteObject <- myOccCiteObject
myOccCitations <- occCitation(mySimpleOccCiteObject)
test_that("regular print", {
output <- capture.output(print(myOccCitations))
expect_equal(length(output), 23)
})
test_that("print by species", {
output <- capture.output(print(myOccCitations, bySpecies = TRUE))
expect_equal(length(output), 27)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.