tests/testthat/test-consent.R

test_that("init fails if no consent has been provided", {
  renv_tests_scope()
  renv_scope_options(renv.consent = FALSE)
  expect_error(init())
})

Try the renv package in your browser

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

renv documentation built on Sept. 19, 2023, 9:06 a.m.