tests/testthat/test-package-metadata.R

test_that("citation information is available", {
  cit <- utils::citation("CascadeData")
  expect_true(inherits(cit, "bibentry") || (is.list(cit) && all(vapply(cit, inherits, logical(1L), "bibentry"))))
})

test_that("CITATION file exists", {
  cit_file <- system.file("CITATION", package = "CascadeData")
  expect_true(file.exists(cit_file))
})

Try the CascadeData package in your browser

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

CascadeData documentation built on Nov. 5, 2025, 5:30 p.m.