View source: R/params-prelude-generated.R
| apply_qtest_rules | R Documentation |
Validates the elements of a named list x against per-field
checkmate::qtest() patterns. Fields whose names are not in rules are
skipped. On failure, returns an error string naming the first offending
element and appending an optional hint.
apply_qtest_rules(x, rules, label, hint = NULL)
x |
Named list of parameters to validate. |
rules |
Named list mapping field name to a qtest pattern (or vector of
patterns passed to |
label |
Short human-readable label used in the error message
(e.g. |
hint |
Optional string appended to the error message to describe the
expected types/ranges. Defaults to |
TRUE if all checked fields pass, otherwise a string of the form
"The element `<field>` in <label> is invalid. <hint>".
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.