Nothing
context("species")
test_that("We can extract generic information from the species table", {
needs_api()
df <- species(c("Oreochromis niloticus", "Bolbometopon muricatum"))
expect_is(df, "data.frame")
})
test_that("Check some classes and values of species table", {
needs_api()
df <- species(c("Oreochromis niloticus", "Bolbometopon muricatum"))
expect_is(df, "data.frame")
# expect_is(df[["SpecCode"]], "numeric") #sometimes integer
})
## Test filters
test_that("We can filter on certain fields",{
needs_api()
df <- species(c("Oreochromis niloticus", "Bolbometopon muricatum"),
fields=c('SpecCode', 'Species'))
expect_is(df, "data.frame")
expect_gt(dim(df)[1], 0)
})
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.