tests/testthat/test_is_error.R

context("is.error")

test_that("is.error", {
 expect_true(is.error(try(stop("foo"), silent=TRUE)))
 expect_false(is.error(try("foo")))
})  

Try the BBmisc package in your browser

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

BBmisc documentation built on Sept. 29, 2022, 5:12 p.m.