View source: R/modifyListCheck.R
| modifyListCheck | R Documentation |
Internal function that combines two lists using modifyList
while validating that all element names are within a set of allowed names.
modifyListCheck(x, y, elems.allowed)
x |
A named list with default values. |
y |
A named list with values to override those in x. Can be NULL. |
elems.allowed |
Character vector of allowed element names for both x and y. |
This function first validates that x contains only allowed element names.
If y is not NULL, it merges y into x using modifyList,
then validates that the resulting list also contains only allowed names.
This ensures that both default arguments and user-provided overrides are valid.
If y is NULL, returns x (after validation). Otherwise returns the result of modifyList(x, y) after validating both lists.
checkNames, modifyList
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.