Description Usage Arguments Value Examples
Extra test functions
1 2 3 4 5 6 7 | expect_subset(
object,
expected,
info = NULL,
label = NULL,
expected.label = NULL
)
|
object |
object to test |
expected |
Expected value |
info |
extra information to be included in the message (useful when writing tests in loops). |
label |
object label. When 'NULL', computed from deparsed object. |
expected.label |
Equivalent of 'label' for shortcut form. |
Returns the object itself if expected value is found in the object as a subset else return Error
1 | expect_subset(c(1, 2, 3, 4, 5), c(2, 4, 5))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.