R: The building block of all 'expect_' functions

expect {testthat} | R Documentation

## The building block of all `expect_` functions

### Description

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

### Usage

    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.

[Package testthat version 2.0.1 Index]