View source: R/Domain_methods.R
domain_check | R Documentation |
checkmate-like check-function. Check whether a list of values is feasible in the domain.
A value is feasible if it is of the same storage_type
, inside of the bounds or element of
special_vals
. TuneToken
s are generally not accepted, so they should be filtered out
before the call, if present.
domain_check
will return TRUE
for accepted values, a character(1)
error message otherwise.
domain_test
will return TRUE
for accepted values, FALSE
otherwise.
domain_assert
will return the param
argument silently for accepted values, and throw an error message otherwise.
domain_check(param, values)
domain_assert(param, values, .var.name = checkmate::vname(param), add = NULL)
domain_test(param, values)
param |
( |
values |
( |
If successful TRUE
, if not a string with the error message.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.