tests/testthat/test-get_resources.R

test_that("getting resources work", {

  skip_on_cran()

  expect_equal(class(id_resources), "list")
  expect_equal(length(id_resources), 10)
  expect_equal(class(id_resources[[1]]), "ckan_resource_stack")

  expect_equal(class(id_resources_character), "ckan_resource_stack")
  expect_equal(length(id_resources_character), 6)

})

Try the rgovcan package in your browser

Any scripts or data that you put into this service are public.

rgovcan documentation built on June 18, 2021, 5:07 p.m.