Description Usage Arguments Value
Check if an argument x has all the required models
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | check_required_models(x, names, check_supported_model = TRUE)
assert_required_models(
x,
names,
check_supported_model = TRUE,
.var.name = checkmate::vname(x),
add = NULL
)
test_required_models(x, names, check_supported_model = TRUE)
expect_required_models(
x,
names,
check_supported_model = TRUE,
info = NULL,
label = vname(x)
)
|
x |
a named list. |
names |
a character vector contains names of the required models |
check_supported_model |
Whether to check that each element in |
.var.name |
[ |
add |
checkmate::AssertCollection |
info |
[ |
label |
[ |
TRUE if all the required models exist else throws an error.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.