I know that testthat::expect_silent will mark an expectation and test as a failure when there's a warning. Does anyone know if there's a way to mark a testing run for an entire package to fail if there are any warnings? I have a package for which I'd like to verify that none of the tests raise warnings, and I can wrap each and every expectation in expect_silent, but I was hoping to somehow make that a global option that would cause the package build process (e.g. as launched via R CMD build) to fail on any raised condition.