Description Usage Arguments Value
View source: R/checkmate.R View source: R/checkmate.R
The only different from checkmate::checkSubset
is that this only print
mismatches in x
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | check_subset2(x, choices, empty.ok = TRUE, fmatch = FALSE)
assert_subset2(
x,
choices,
empty.ok = TRUE,
fmatch = FALSE,
.var.name = checkmate::vname(x),
add = NULL
)
test_subset2(x, choices, empty.ok = TRUE, fmatch = FALSE)
expect_subset2(
x,
choices,
empty.ok = TRUE,
fmatch = FALSE,
info = NULL,
label = vname(x)
)
|
x |
[any] |
choices |
[ |
empty.ok |
[ |
fmatch |
[ |
.var.name |
[ |
add |
checkmate::AssertCollection |
info |
[character(1)] |
label |
[ |
(logical(1)
).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.