Nothing
context("resource_search")
skip_on_cran()
u <- get_test_url()
test_that("resource_search gives back expected class types", {
check_ckan(u)
a <- resource_search("name:test", url=u)
expect_is(a, "list")
})
test_that("resource_search works with many queries, list or vector", {
check_ckan(u)
a <- resource_search(c("description:encoded", "name:No.2"), url=u)
expect_is(a, "list")
b <- resource_search(list("description:encoded", "name:No.2"), url=u)
expect_is(b, "list")
})
test_that("resource_search works giving back json output", {
check_ckan(u)
b <- resource_search("name:test", url=u, as = "json")
b_df <- jsonlite::fromJSON(b)
expect_is(b_df, "list")
})
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.