Use this if you are writing your own expectation. See vignette("custom-expectation") for details

expect(ok, failure_message, info = NULL, srcref = NULL)

Arguments

ok

Was the expectation successful?

failure_message

What message should be shown if the expectation was not successful?

info

Additional information. Included for backward compatibility only and new expectations should not use it.

srcref

Only needed in very rare circumstances where you need to forward a srcref captured elsewhere.