assert_disjunct | R Documentation |
Check if an argument is disjunct from a given set.
assert_disjunct(
x,
y,
fmatch = FALSE,
.var.name = checkmate::vname(x),
comment = NULL,
add = NULL
)
x |
[ |
y |
[atomic] |
fmatch |
[ |
.var.name |
[ |
comment |
[ |
add |
[ |
The assertions are based on checkmate::checkDisjunct
. NVIcheckmate::assert_disjunct
differs from checkmate::assert_disjunct
in including the argument comment =
. The help
is updated to reflect the changes.
If the check is successful, the function
assert_disjunct
return x
invisibly.
If the check is not successful,
assert_disjunct
throws an error message.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.