tests/testthat/test_setup_website.R

options(usethis.quiet = TRUE)
# TEST setup_website -----------------------------------------------------------
test_that("setup_website throws an error when no README file available", {
  create_local_package()
  rlang::local_interactive(FALSE)
  expect_error(setup_website())
})

Try the washr package in your browser

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

washr documentation built on April 4, 2025, 1:10 a.m.