Nothing
context("package_search")
skip_on_cran()
u <- get_test_url()
test_that("package_search gives back expected class types", {
check_ckan(u)
a <- package_search(rows=10, url=u)
expect_is(a, "list")
expect_lt(length(a$results), 10 + 1)
a2 <- package_search(rows=length(a$results), url=u)
expect_is(a2, "list")
expect_equal(length(a2$results), length(a$results))
})
test_that("package_search works giving back json output", {
check_ckan(u)
a <- package_search(rows=10, url=u, as="json")
a_df <- jsonlite::fromJSON(a)
expect_is(a, "character")
expect_is(a_df, "list")
expect_is(a_df$result$results, "data.frame")
})
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.