context("sp locations details")
con <- ba_db()$sweetpotatobase
test_that("Location is present", {
skip("Not Implemented")
loc <- ba_locations_details(con = con, "1")
expect_that(nrow(loc) == 1, is_true())
expect_that(ncol(loc) == 19, is_true())
})
test_that("Locations output formats work", {
skip("Not Implemented")
loc <- ba_locations_details(con = con, "1", rclass = "json")
expect_that("json" %in% class(loc), is_true())
loc <- ba_locations_details(con = con, "1", rclass = "data.frame")
expect_that("data.frame" %in% class(loc), is_true())
loc <- ba_locations_details(con = con, "1", rclass = "list")
expect_that("list" %in% class(loc), is_true())
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.