`null()` did not throw the expected error.
"OK" did not throw the expected error.
Code
expect_error(stop("!"), regexp = 1)
Condition
Error in `expect_error()`:
! `pattern` must be a single string, `NA`, or `NULL`, not the number 1.
Code
expect_error(stop("!"), class = 1)
Condition
Error in `expect_error()`:
! `class` must be a single string or `NULL`, not the number 1.
`fb()` threw an unexpected error.
Message: dispatched!
Class: foobar/rlang_error/error/condition
Code
expect_condition(stop("Hi!"), foo = "bar")
Condition
Warning in `expect_condition()`:
Arguments in `...` must be used.
x Problematic argument:
* foo = "bar"
i Did you misspell an argument name?
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.