context("sp genomemaps_details")
con <- ba_db()$sweetpotatobase
test_that("Calls are present", {
skip("Not yet implemented by sweetpotatobase")
res <- ba_genomemaps_details(con = con, mapDbId = "gm1")
expect_that(nrow(res) == 3, is_true())
})
test_that("Return formats work", {
skip("Not yet implemented by sweetpotatobase")
res <- ba_genomemaps_details(con = con, mapDbId = "gm1", rclass = "json")
expect_that("json" %in% class(res), is_true())
res <- ba_genomemaps_details(con = con, mapDbId = "gm1", rclass = "list")
expect_that("list" %in% class(res), is_true())
res <- ba_genomemaps_details(con = con, mapDbId = "gm1", rclass = "vector")
expect_that("tbl_df" %in% class(res), is_true())
res <- ba_genomemaps_details(con = con, mapDbId = "gm1", rclass = "data.frame")
expect_that("data.frame" %in% class(res), is_true())
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.