Reposted by Blas M. Benito
#rstats new blog post!
"Snapshotting error messages", where I explain why I think all testthat::expect_error() should be replaced by testthat::expect_snapshot(error = TRUE), and where I present an easy, automated way to do this transition.
www.etiennebacher.com/posts/2026-0...
etiennebacher.com
Snapshotting error messages | Etienne Bacher
Usually, when we develop software, we know very well how to use it and how it works. This is not true for external users, people who will make mistakes and won't use your software correctly on the fir...