| expect_pkg_error_snapshot | R Documentation |
A convenience wrapper around testthat::expect_snapshot() and
expect_pkg_error_classes() that captures both the error class hierarchy and
the user-facing message in a single snapshot.
expect_pkg_error_snapshot(
object,
package,
...,
transform = NULL,
variant = NULL,
env = caller_env()
)
object |
An expression that is expected to throw an error. |
package |
|
... |
|
transform |
( |
variant |
( |
env |
( |
The result of testthat::expect_snapshot(), invisibly.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.