expect_silent and Debugging

When using the testthat package, there is a function, expect_silent(), to ensure no notes, warnings, or errors get produced.

If you are trying to debug this call (either via explicit debug() or inserting a call to browser()), the expect_silent() will suppress all output. Remove the expect_silent() call to properly debug!

Home | Back to blog