Description Usage Arguments Details See Also Examples
Returns a function that checks whether its argument is close to an expected result within the given tolerance
1  | closeTo(expected, delta)
 | 
expected | 
 a numeric vector.  | 
delta | 
 a numeric vector of length one that defines the maximum allowed difference.  | 
The closeTo() matcher function can only be used for numeric arguments.
identicalTo
equalTo
1 2 3 4  | ## Not run: 
assertThat(-0.50557992900139, closeTo(-0.50557, delta = 1e4))
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.