Nothing
context("name_parse")
test_that("returns the correct class", {
vcr::use_cassette("name_parse", {
tt <- name_parse(scientificname = 'x Agropogon littoralis')
uu <- name_parse(c('Arrhenatherum elatius var. elatius',
'Secale cereale subsp. cereale', 'Secale cereale ssp. cereale',
'Vanessa atalanta (Linnaeus, 1758)'))
}, preserve_exact_body_bytes = TRUE)
expect_is(tt, "data.frame")
expect_is(uu, "data.frame")
expect_is(uu$scientificname, "character")
expect_is(uu$bracketyear, "character")
# returns the correct value
expect_equal(as.character(tt$scientificname[[1]]), "x Agropogon littoralis")
expect_equal(as.character(uu$specificepithet[[1]]), "elatius")
# returns the correct dimensions
expect_equal(dim(tt), c(1,11))
expect_equal(dim(uu), c(4,13))
})
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.