get_failed_tests_string {recorder} | R Documentation |
Get Failed Tests as a String
Description
Concatenates information of the tests that failed into one single character vector.
Usage
get_failed_tests_string(playback, ignore_tests = NULL,
ignore_cols = NULL, ignore_combinations = NULL)
Arguments
playback |
|
ignore_tests |
|
ignore_cols |
|
ignore_combinations |
|
Details
Look up the descriptions and other meta data of the available
validation tests with get_tests_meta_data
.
Value
character
with one entry for each row in new data. Each
entry concatenates information of the tests, that did NOT pass for the
corresponding row in new data.
Examples
# record tape from `iris`.
tape <- record(iris)
# load data.
data(iris_newdata)
# validate new data by playing new tape on it.
playback <- play(tape, iris_newdata)
get_failed_tests_string(playback)
get_failed_tests_string(playback, ignore_tests = "outside_range")
get_failed_tests_string(playback, ignore_cols = "junk")
get_failed_tests_string(playback, ignore_combinations = list(outside_range = "Sepal.Width"))
[Package recorder version 0.8.2 Index]