Nothing
context("avisSpeciesId")
# TODO: base on mocked .avisApiBusOrden
test_that("Correct species name is loaded", {
nameraw <- "Pica pica"
expectedId <- 480
expect_is(avisSpeciesId (nameraw), "integer")
expect_identical (avisSpeciesId (nameraw), as.integer (expectedId))
})
test_that("Wrong species name throws an error", {
expect_error (avisSpeciesId ("Unexistent especies"))
})
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.