powered by
Extra test functions
expect_subset( object, expected, info = NULL, label = NULL, expected.label = NULL )
object to test
Expected value
extra information to be included in the message (useful when writing tests in loops).
object label. When `NULL`, computed from deparsed object.
Equivalent of `label` for shortcut form.
Returns the object itself if expected value is found in the object as a subset else return Error
# NOT RUN { expect_subset(c(1, 2, 3, 4, 5), c(2, 4, 5)) # }
Run the code above in your browser using DataLab