tests/testthat/test-get_decon.R

context("get_decon")

test_that("get_decon produces an opinionated dataset", {

  skip_if_offline()
  skip_on_cran()

  cesR::get_decon()
  expect_true(exists("decon"))
})

test_that("get_decon produces an error message if the decon object already exists", {

  skip_if_offline()
  skip_on_cran()

  expect_error(cesR::get_decon())
})

Try the cesR package in your browser

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

cesR documentation built on Nov. 24, 2021, 1:10 a.m.