tests/testthat/test-testthat.R

# the condition handler in our test_that wrapper should prevent
# this from being a real error; it should just be a skip
test_that("errors can be caught and skipped", {
  stop("download failed [error code 22]")
})

Try the renv package in your browser

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

renv documentation built on March 25, 2026, 5:07 p.m.