tests/testthat/test-stopper.R

test_that("stopper works", {
  
  testthat::expect_error(
    stopper("stop message")
  )
  testthat::expect_error(
    stopper("stop message",v=FALSE)
  )
})

Try the rworkflows package in your browser

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

rworkflows documentation built on May 29, 2024, 2:37 a.m.