Description Usage Arguments Details Value Author(s)
Tests the coverage of a spotter function
1 | test_spotter(spotter, data, unspotted = TRUE)
|
spotter |
a spotter function |
data |
a vector of character test data |
unspotted |
whether to also list strings to which the spotter returns FALSE |
This is a test function to runs a spotter function over a set of strings
and reports which strings are spotted and which are not. It's mostly useful
to ensure that any regular expressions given to spotter
(i.e. when
re=TRUE) have the
right coverage before using the spotter function to select events from your data.
the elements of data
that the spotter spots, i.e. returns TRUE to, and
also optionally the elements which the spotter ignores, i.e. returns FALSE to.
Will Lowe
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.