tests/testthat/test-setup.R

test_that("check default behavior", {

  skip_on_cran()

  govcan_setup("https://open.canada.ca/data/fr")
  expect_equal("https://open.canada.ca", suppressWarnings(ckanr::ckan_info()$site_url))
  govcan_setup()
  expect_equal("https://open.canada.ca", suppressWarnings(ckanr::ckan_info()$site_url))
})

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.