Nothing
suppressMessages(insert_cassette("finbif_check_taxa"))
test_that(
"returns valid data when taxa exist", {
skip_on_cran()
sp_true <- finbif_check_taxa(list(species = "Parus major"))
expect_type(sp_true, "list")
expect_output(print(sp_true), "species: Parus major")
}
)
test_that(
"returns valid data when taxa don't exist", {
skip_on_cran()
expect_type(finbif_check_taxa(list(species = "Parus najor")), "list")
expect_type(finbif_check_taxa(list(genus = "Parus major")), "list")
not_found <- finbif_check_taxa("Moomin")
expect_output(print(not_found), "Not found")
}
)
suppressMessages(eject_cassette("finbif_check_taxa"))
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.